mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix audit log error when custom emoji is copied from remote server (#11876)
This commit is contained in:
parent
75c6ad500d
commit
3919571c39
@ -63,7 +63,7 @@ class CustomEmoji < ApplicationRecord
|
||||
def copy!
|
||||
copy = self.class.find_or_initialize_by(domain: nil, shortcode: shortcode)
|
||||
copy.image = image
|
||||
copy.save!
|
||||
copy.tap(&:save!)
|
||||
end
|
||||
|
||||
class << self
|
||||
|
Loading…
Reference in New Issue
Block a user