mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-24 20:31:49 +00:00
Merge branch 'issue-15109-1' of https://0xacab.org/sutty/sutty into production.panel.sutty.nl
This commit is contained in:
commit
da53c4f4ed
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