From 721bf496189318c1614b93874984698599749b9b Mon Sep 17 00:00:00 2001 From: freamon Date: Thu, 7 Mar 2024 10:45:36 +0000 Subject: [PATCH] Remove duplicate activitypub logging --- app/community/routes.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/community/routes.py b/app/community/routes.py index b77cf25b..70ffdbc0 100644 --- a/app/community/routes.py +++ b/app/community/routes.py @@ -327,14 +327,8 @@ def unsubscribe(actor): 'id': undo_id, 'object': follow } - activity = ActivityPubLog(direction='out', activity_id=undo_id, activity_type='Undo', - activity_json=json.dumps(undo), result='processing') - db.session.add(activity) - db.session.commit() success = post_request(community.ap_inbox_url, undo, current_user.private_key, current_user.profile_id() + '#main-key') - activity.result = 'success' - db.session.commit() if not success: flash('There was a problem while trying to unsubscribe', 'error')