mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 22:56:22 +00:00
feat: al deshacer una actividad resolvemos la pendiente
This commit is contained in:
parent
e62d6c6c1d
commit
6b12e5141c
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue