mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Permit unpinning an unlisted topic.
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user