about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-17 16:00:28 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-17 16:00:28 -0500
commit65b79ae1886eeb3cc713b1646c1ae8debbd7b050 (patch)
treecfadd1b339c928e51669ff33fec855c12ac52438 /app
parent83cb62809ba88b21af6ead3cdda21475178c8245 (diff)
allow admins to retag parent posts (`parent:tag:monsterpit.dev.todo`)
Diffstat (limited to 'app')
-rw-r--r--app/lib/bangtags.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb
index 79ce7e7eb..c8e64d30c 100644
--- a/app/lib/bangtags.rb
+++ b/app/lib/bangtags.rb
@@ -295,7 +295,7 @@ class Bangtags
             chunk = TagManager.instance.url_for(@parent_status)
           when 'tag', 'untag'
             chunk = nil
-            next unless @parent_status.account.id == @account.id
+            next unless @parent_status.account.id == @account.id || @account.user.admin?
             tags = cmd[2..-1].map {|t| t.gsub(':', '.')}
             if cmd[1].downcase == 'tag'
               add_tags(@parent_status, *tags)