mirror of
https://0xacab.org/sutty/sutty
synced 2025-03-16 08:08:16 +00:00
Merge branch 'issue-15109-1' of https://0xacab.org/sutty/sutty into production.panel.sutty.nl
This commit is contained in:
commit
5065188bac
1 changed files with 14 additions and 12 deletions
|
@ -13,6 +13,7 @@ class ActivityPub
|
||||||
# lo haría la Social Inbox por nosotres.
|
# lo haría la Social Inbox por nosotres.
|
||||||
# @see {https://docs.joinmastodon.org/spec/security/#ld}
|
# @see {https://docs.joinmastodon.org/spec/security/#ld}
|
||||||
def update_activity_pub_state!
|
def update_activity_pub_state!
|
||||||
|
ActiveRecord::Base.connection_pool.with_connection do
|
||||||
ActivityPub.transaction do
|
ActivityPub.transaction do
|
||||||
object = ActivityPub::Object.find_by(uri: ActivityPub.uri_from_object(content['object']))
|
object = ActivityPub::Object.find_by(uri: ActivityPub.uri_from_object(content['object']))
|
||||||
|
|
||||||
|
@ -34,3 +35,4 @@ class ActivityPub
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue