This website works better with JavaScript.
Home
Explore
Help
Sign In
nekobus
/
mastodon_neko
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Fix audit log error when custom emoji is copied from remote server (
#11876
)
master
han@highemelry
5 years ago
committed by
Eugen Rochko
parent
75c6ad500d
commit
3919571c39
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/models/custom_emoji.rb
+ 1
- 1
app/models/custom_emoji.rb
View File
@ -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
Write
Preview
Loading…
Cancel
Save