I think that function was removed, you might have some old code that is still calling it. What is your NodeBB version and the rest of the stack trace?
UNSOLVED Adding fields to topics/posts
logii last edited by
Is there anyway to add new fields to topics or posts for custom sorting?
There is no way to do this in core. Are you trying to make a plugin to do this?
For adding fields to a post/topic you would use the hooks as so:
Sorting is another matter, you need to also add the fields to a sortedSet in the db, here are two examples:
You mean add tags after the fact? Only a mod or the OP can edit a topic and add them.
Tags are not available for posts but I really, really, wish they were.