Hi,
I try to display fullname instead of username inside post but it's not in the /api/topic endpoint and posts.user.fullname is always undefined even if the user have the fullname field set.
How can I add the fullname to the api ?
Hi,
I try to display fullname instead of username inside post but it's not in the /api/topic endpoint and posts.user.fullname is always undefined even if the user have the fullname field set.
How can I add the fullname to the api ?
@baris Hey thanks for the quick answer !
I've tried your solution but it doesn't seem to change anything. Actually, isn't the "fullname" field already in the fields array ?
https://github.com/NodeBB/NodeBB/blob/master/src/posts/user.js#L92
Despite this the fullname isn't returned on topic. Here for example : https://community.nodebb.org/api/topic/14115/display-fullname-in-topic/2
Did I miss something ?
Yes, now it works ! Thanks @baris