mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-28 16:26:22 +00:00
Merge branch 'issue-15109-1' of https://0xacab.org/sutty/sutty into production.panel.sutty.nl
This commit is contained in:
commit
50ff8f2820
1 changed files with 1 additions and 2 deletions
|
@ -21,6 +21,7 @@ class ActivityPub
|
|||
response = site.social_inbox.dereferencer.get(uri: object.uri)
|
||||
|
||||
# @todo Fallar cuando la respuesta no funcione?
|
||||
# @todo Eliminar en 410 Gone
|
||||
return unless response.ok?
|
||||
# Ignorar si ya la caché fue revalidada y ya teníamos el
|
||||
# contenido
|
||||
|
@ -31,8 +32,6 @@ class ActivityPub
|
|||
|
||||
object.update!(content: content, type: ActivityPub::Object.type_from(content).name)
|
||||
|
||||
return if current_type == object.type
|
||||
|
||||
object = ::ActivityPub::Object.find(object_id)
|
||||
# Actualiza la mención
|
||||
object.actor&.save! if object.actor_type?
|
||||
|
|
Loading…
Reference in a new issue