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

fixup! fix: no mostrar likes #15596

This commit is contained in:
f 2024-03-15 18:08:34 -03:00
parent 00270b7829
commit 26e8656616
No known key found for this signature in database

View file

@ -111,16 +111,10 @@ class ActivityPub < ApplicationRecord
# disponible, que según el scope por defecto, va a ser la primera de
# la lista.
def reject_remotely!
fail! unless site.social_inbox.inbox.reject(id: activities.first.uri).ok?
raise unless site.social_inbox.inbox.reject(id: activities.first.uri).ok?
end
def allow_remotely!
with_failure_handling(activity: activities.first.uri) do
fail! unless site.social_inbox.inbox.accept(id: activities.first.uri).ok?
end
end
def fail_message
activities.first&.uri || 'Activity missing'
raise unless site.social_inbox.inbox.accept(id: activities.first.uri).ok?
end
end