After importing forums into NodeBB, users are not getting notifications of new replies to topics they have replied to. They are not set as followers/watchers of their topics anymore, excepting the first poster only.
An example of a MongoDB record for a long topic with a large number of posters but only three followers (OP, admin, tester):
{
"_id" : ObjectId("5ab6da748fda465c4283b0f5"),
"_key" : "tid:899:followers",
"members" : [
"4614",
"1",
"20790"
]
}
The follower with uid 4614 is the original poster of the topic. 1 is of course the admin. 20790 is a temporary user to test adding himself manually as watcher of the topic.
Related to this record, there are also a large number of records for the many posters on this long forum topic (e.g., for users 4614, 9623...):
{
"_id" : ObjectId("5ab6da748fda465c4283b0e5"),
"_key" : "tid:899:posters",
"value" : "4614",
"score" : 8
}
{
"_id" : ObjectId("5ab6dc328fda465c4292cfff"),
"_key" : "tid:899:posters",
"value" : "9623",
"score" : 1
}
etc...
This happens with all topics and users of the imported forums.
A good way to fix it would be if selecting "Follow topics that you reply to" as default user setting configured existing users as well, since that's usually the expected behavior for forums. However, currently this setting doesn't restore previous topic posters as topic followers, and they don't receive notifications.
Please, is there a way to restore them as followers? Those forums have thousands of users, so we can't manually edit the databases. Maybe some kind of script for MongoDB? Not sure how to fix it.