createTags broken in 1.18.x
-
createTags stopped working in 1.18.x or has been changed in some way.
console.log(await topics.createTags(['a-uex' + data.post.uid + '-film'], data.post.tid, Date.now()));
returns undefined
It seams it adds the tag and update tagcount but it does not add the tag to the topic.
Can someone confirm?
-
This is a side effect of a breaking change in https://github.com/NodeBB/NodeBB/pull/9656.
If you use
await topics.addTags(['a-uex' + data.post.uid + '-film'], [data.post.tid]);
it should work.Tags are stored in the
topic:<tid>
object in thetags
fields since 1.18.0.
Copyright © 2024 NodeBB | Contributors