mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 20:46:21 +00:00
fixup! fix: no mostrar likes #15596
This commit is contained in:
parent
00270b7829
commit
26e8656616
1 changed files with 2 additions and 8 deletions
|
@ -111,16 +111,10 @@ class ActivityPub < ApplicationRecord
|
||||||
# disponible, que según el scope por defecto, va a ser la primera de
|
# disponible, que según el scope por defecto, va a ser la primera de
|
||||||
# la lista.
|
# la lista.
|
||||||
def reject_remotely!
|
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
|
end
|
||||||
|
|
||||||
def allow_remotely!
|
def allow_remotely!
|
||||||
with_failure_handling(activity: activities.first.uri) do
|
raise unless site.social_inbox.inbox.accept(id: activities.first.uri).ok?
|
||||||
fail! unless site.social_inbox.inbox.accept(id: activities.first.uri).ok?
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def fail_message
|
|
||||||
activities.first&.uri || 'Activity missing'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue