diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-17 16:00:28 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-17 16:00:28 -0500 |
commit | 65b79ae1886eeb3cc713b1646c1ae8debbd7b050 (patch) | |
tree | cfadd1b339c928e51669ff33fec855c12ac52438 /app/lib | |
parent | 83cb62809ba88b21af6ead3cdda21475178c8245 (diff) |
allow admins to retag parent posts (`parent:tag:monsterpit.dev.todo`)
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/bangtags.rb | 2 |
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) |