diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-25 01:35:49 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-25 01:35:49 -0500 |
commit | 0d17c2bf2e5245245935778588fd642a024aa8d4 (patch) | |
tree | 42c3195a8849e6271fbf5db7590d1a056b73a885 /app/lib/bangtags.rb | |
parent | 234fae09ad2e789a478858362320e6a3f73b960f (diff) |
add all `ActionLog`-able admin & moderator actions to logger
Diffstat (limited to 'app/lib/bangtags.rb')
-rw-r--r-- | app/lib/bangtags.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb index cd3d86daf..1b3fd0136 100644 --- a/app/lib/bangtags.rb +++ b/app/lib/bangtags.rb @@ -170,8 +170,10 @@ class Bangtags if emoji.id.nil? emoji.image = src_img emoji.save + user_friendly_action_log(@account, :create, emoji) end when 'emoji' + chunk = nil next if cmd[1].nil? shortcode = cmd[1] domain = (cmd[2].blank? ? nil : cmd[2].downcase) @@ -186,6 +188,7 @@ class Bangtags unless theirs.nil? ours.image = theirs.image ours.save + user_friendly_action_log(@account, :create, ours) end end when 'char' @@ -306,6 +309,7 @@ class Bangtags if ours.id.nil? ours.image = theirs.image ours.save + user_friendly_action_log(@account, :create, ours) end end end @@ -332,6 +336,7 @@ class Bangtags if ours.id.nil? ours.image = theirs.image ours.save + user_friendly_action_log(@account, :create, ours) end end when 'urls' @@ -643,7 +648,7 @@ class Bangtags end end - chunk.gsub!("#\uf666!", '#!') unless chunk.blank? + chunk.gsub!("#\uf666!", '#!') unless chunk.blank? || chunk.frozen? if chunk.present? && @tf_cmds.present? @tf_cmds.each do |tf_cmd| |