5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 21:36:21 +00:00

fix: a veces el objeto no existe (?)

closes #15554
This commit is contained in:
f 2024-03-13 15:52:33 -03:00
parent f794e8057b
commit 882ab1679c
No known key found for this signature in database

View file

@ -56,6 +56,8 @@ class ActivityPub < ApplicationRecord
transitions to: :removed transitions to: :removed
before do before do
next if object.blank?
object.update(content: {}) unless object.content.empty? object.update(content: {}) unless object.content.empty?
end end
end end