Thanks, I have just solved the error.
But the code doesn't work for now. How can I do execute a function when user go to topic?
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 ?
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 ?
That's weird, I will take a look and see what I can find.
@snahedis The fullname is tied to a user setting and a global setting.
I turned on
Show My Full Name and you can see the fullname is returned in the api now.
Yes, now it works ! Thanks @baris