mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
to be sure
This commit is contained in:
parent
ef3393459b
commit
148183f530
1 changed files with 1 additions and 1 deletions
|
@ -727,7 +727,7 @@ def process_inbox_request(request_json, activitypublog_id, ip_address):
|
||||||
old_cross_posts = Post.query.filter(Post.id.in_(post.cross_posts)).all()
|
old_cross_posts = Post.query.filter(Post.id.in_(post.cross_posts)).all()
|
||||||
post.cross_posts.clear()
|
post.cross_posts.clear()
|
||||||
for ocp in old_cross_posts:
|
for ocp in old_cross_posts:
|
||||||
if ocp.cross_posts is not None:
|
if ocp.cross_posts is not None and post.id in ocp.cross_posts:
|
||||||
ocp.cross_posts.remove(post.id)
|
ocp.cross_posts.remove(post.id)
|
||||||
delete_post_or_comment(user_ap_id, community_ap_id, to_be_deleted_ap_id)
|
delete_post_or_comment(user_ap_id, community_ap_id, to_be_deleted_ap_id)
|
||||||
activity_log.result = 'success'
|
activity_log.result = 'success'
|
||||||
|
|
Loading…
Add table
Reference in a new issue