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

fix: no actualizar si el contenido estaba cacheado

This commit is contained in:
f 2024-03-18 15:06:41 -03:00
parent ceeb0009ef
commit e50ae70ebb
No known key found for this signature in database

View file

@ -22,7 +22,9 @@ class ActivityPub
# @todo Fallar cuando la respuesta no funcione?
return unless response.ok?
return if response.miss? && object.content.present?
# Ignorar si ya la caché fue revalidada y ya teníamos el
# contenido
return if response.hit? && object.content.present?
current_type = object.type
content = FastJsonparser.parse(response.body)