Due to how the backend is structured, it is not possible to customise the url format (at least, not the /topic part). Removal of the slug is potentially doable, however.
Display fullname in topic
-
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 @snahedis take a look at https://community.nodebb.org/post/74689
-
@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#L92Despite 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