5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-10-08 22:26:56 +00:00

Merge branch 'issue-15109-1' of https://0xacab.org/sutty/sutty into production.panel.sutty.nl

This commit is contained in:
Sutty 2024-03-18 19:45:25 +00:00
commit 50ff8f2820

View file

@ -21,6 +21,7 @@ class ActivityPub
response = site.social_inbox.dereferencer.get(uri: object.uri) response = site.social_inbox.dereferencer.get(uri: object.uri)
# @todo Fallar cuando la respuesta no funcione? # @todo Fallar cuando la respuesta no funcione?
# @todo Eliminar en 410 Gone
return unless response.ok? return unless response.ok?
# Ignorar si ya la caché fue revalidada y ya teníamos el # Ignorar si ya la caché fue revalidada y ya teníamos el
# contenido # contenido
@ -31,8 +32,6 @@ class ActivityPub
object.update!(content: content, type: ActivityPub::Object.type_from(content).name) object.update!(content: content, type: ActivityPub::Object.type_from(content).name)
return if current_type == object.type
object = ::ActivityPub::Object.find(object_id) object = ::ActivityPub::Object.find(object_id)
# Actualiza la mención # Actualiza la mención
object.actor&.save! if object.actor_type? object.actor&.save! if object.actor_type?