Tämä sivusto toimii paremmin JavaScriptillä.
Etusivu
Tutki
Apua
Kirjaudu sisään
abunchtell
/
mastodon
Tarkkaile
1
Äänestä
0
Fork
0
Koodi
Ongelmat
0
Toiminta
Selaa lähdekoodia
Fix audit log error when custom emoji is copied from remote server (
#11876
)
master^2
han@highemelry
4 vuotta sitten
committed by
Eugen Rochko
vanhempi
75c6ad500d
commit
3919571c39
1 muutettua tiedostoa
jossa
1 lisäystä
ja
1 poistoa
Yhdistetty näkymä
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/models/custom_emoji.rb
+ 1
- 1
app/models/custom_emoji.rb
Näytä tiedosto
@@ -63,7 +63,7 @@ class CustomEmoji < ApplicationRecord
def copy!
def copy!
copy = self.class.find_or_initialize_by(domain: nil, shortcode: shortcode)
copy = self.class.find_or_initialize_by(domain: nil, shortcode: shortcode)
copy.image = image
copy.image = image
copy.save!
copy.
tap(&:
save!
)
end
end
class << self
class << self
Kirjoita
Esikatselu
Ladataan…
Peruuta
Tallenna