mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 22:36:21 +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,7 +17,10 @@ class ActivityPub
|
||||||
#
|
#
|
||||||
# @see {https://github.com/hyphacoop/social.distributed.press/issues/43}
|
# @see {https://github.com/hyphacoop/social.distributed.press/issues/43}
|
||||||
def update_activity_pub_state!
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue