Hi all, extensive grep’ing did not produce any usable results, so here’s my tiny question: how do I unlist a topic from Ruby?
JSey (Joe Seyfried) #1
eviltrout (Robin Ward) #2
Looks like we have some tech debt as
invisbile was renamed to
It is changed by calling
:visible - discourse/topic.rb at master · discourse/discourse · GitHub
elberet (Jens Maier) #3
topic = Topic.find(topic_id) user = User.find(moderator_id) || Discourse.system_user topic.update_status(:visible, false, user)
JSey (Joe Seyfried) #4
Perfect, you two - works like a charm. Thanks!
zogstrip (Régis Hanol) #5