FIX: Permit unpinning an unlisted topic.

This commit is contained in:
Bianca Nenciu
2018-09-12 20:52:24 +02:00
committed by Sam
parent f666d72606
commit 8f39cf6bfc
2 changed files with 31 additions and 2 deletions

View File

@@ -184,8 +184,8 @@ export default createWidget("topic-admin-menu", {
const isPrivateMessage = topic.get("isPrivateMessage");
if (!isPrivateMessage && topic.get("visible")) {
const featured = topic.get("pinned_at") || topic.get("isBanner");
const featured = topic.get("pinned_at") || topic.get("isBanner");
if (!isPrivateMessage && (topic.get("visible") || featured)) {
buttons.push({
className: "topic-admin-pin",
action: "showFeatureTopic",