Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
abunchtell
/
mastodon
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Actividad
Explorar el Código
Fix custom emoji category creation silently erroring out on duplicate category (
#12647
)
Instead, just re-use the existing category if any.
Fixes
#12608
master^2
ThibG
hace 4 años
committed by
Eugen Rochko
padre
fb9137752a
commit
c0ed53b810
Se han
modificado 1 ficheros
con
1 adiciones
y
1 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+1
-1
app/models/form/custom_emoji_batch.rb
+ 1
- 1
app/models/form/custom_emoji_batch.rb
Ver fichero
@@ -40,7 +40,7 @@ class Form::CustomEmojiBatch
if category_id.present?
CustomEmojiCategory.find(category_id)
elsif category_name.present?
CustomEmojiCategory.create!(name: category_name)
CustomEmojiCategory.
find_or_
create
_by
!(name: category_name)
end
end
Escribir
Vista previa
Cargando…
Cancelar
Guardar