From 65b79ae1886eeb3cc713b1646c1ae8debbd7b050 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Wed, 17 Jul 2019 16:00:28 -0500 Subject: allow admins to retag parent posts (`parent:tag:monsterpit.dev.todo`) --- app/lib/bangtags.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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) -- cgit