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

feat: al deshacer una actividad resolvemos la pendiente

This commit is contained in:
f 2024-02-21 17:54:18 -03:00
parent e62d6c6c1d
commit 6b12e5141c
No known key found for this signature in database

View file

@ -17,7 +17,10 @@ class ActivityPub
#
# @see {https://github.com/hyphacoop/social.distributed.press/issues/43}
def update_activity_pub_state!
activity_pub.remove!
ActivityPub.transaction do
ActivityPub::Activity.find_by(uri: content['object'])&.activity_pub&.remove!
activity_pub.remove!
end
end
end
end