5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 06:56:22 +00:00

fix: detectar si viene vacío

This commit is contained in:
f 2024-03-01 16:51:40 -03:00
parent 2e1087107a
commit 09e56b88ed
No known key found for this signature in database

View file

@ -96,7 +96,7 @@ module Api
when Hash then original_activity.dig(:object, :id) when Hash then original_activity.dig(:object, :id)
end end
ensure ensure
raise ActiveRecord::RecordNotFound, 'object id missing' unless @object_uri raise ActiveRecord::RecordNotFound, 'object id missing' if @object_uri.blank?
end end
# Atajo a la instancia # Atajo a la instancia