this post was submitted on 28 Jan 2019
0 points (NaN% liked)

General Discussion

0 readers
2 users here now

A place to talk about whatever you want


This is a forum category containing topical discussion. You can start new discussions by mentioning this category.

founded 6 months ago
 

Once I've moved a topic to a better category, I don't want users to see that black "moved" arrow on the left of the topic. How do I get rid of that?

top 7 comments
sorted by: hot top controversial new old
[–] eeeee@community.nodebb.org 1 points 2 months ago* (last edited 2 months ago) (1 children)

Is there a way to edit the database so move field is cleared? I moved some of my forums initial posts a long time ago and dont need the moved arrow or the 'moved from xyz' against them now.

[–] julian@community.nodebb.org 1 points 2 months ago

@eeeee the previous cid is stored in the topic hash itself. Just removing that property should work.

[–] eeeee@community.nodebb.org 1 points 2 months ago (1 children)

Great, can you explain best way to access topic hash and remove it please?

[–] julian@community.nodebb.org 1 points 2 months ago

Topic hash is topic: plus the topic id.

e.g. the database entry for this one is: topic:13608.

[–] baris@community.nodebb.org 1 points 2 months ago (1 children)

Which database are you using?

[–] eeeee@community.nodebb.org 1 points 2 months ago* (last edited 2 months ago)

@julian I was confused by the use of the phrase hash. So the post has an ID number, but theres also a field saying which ID number it was in before (if it has been moved) ?

@baris its MongoDB

[–] baris@community.nodebb.org 1 points 2 months ago* (last edited 2 months ago)

So the number in the url is the topic id, for example for this topic its /topic/13608, to remove the moved arrow for this topic you would run the below in mongodb.

db.objects.updateOne({_key: "topic:13608"}, {$unset: {"fromCid": ""}});