@baris thank you so much!!! Run like a charm!!!
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()));
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 the
tagsfields since 1.18.0.
Yes indeed, it works with addTags. I figured it out on my own but thanks for the reply @baris