allow admins to retag parent posts (`parent:tag:monsterpit.dev.todo`)

staging
multiple creatures 2019-07-17 16:00:28 -05:00
parent 83cb62809b
commit 65b79ae188
1 changed files with 1 additions and 1 deletions

View File

@ -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)