5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 22:46:23 +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,8 +17,11 @@ class ActivityPub
#
# @see {https://github.com/hyphacoop/social.distributed.press/issues/43}
def update_activity_pub_state!
ActivityPub.transaction do
ActivityPub::Activity.find_by(uri: content['object'])&.activity_pub&.remove!
activity_pub.remove!
end
end
end
end
end