mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
Remove duplicate activitypub logging
This commit is contained in:
parent
b7f187e706
commit
721bf49618
1 changed files with 0 additions and 6 deletions
|
@ -327,14 +327,8 @@ def unsubscribe(actor):
|
||||||
'id': undo_id,
|
'id': undo_id,
|
||||||
'object': follow
|
'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,
|
success = post_request(community.ap_inbox_url, undo, current_user.private_key,
|
||||||
current_user.profile_id() + '#main-key')
|
current_user.profile_id() + '#main-key')
|
||||||
activity.result = 'success'
|
|
||||||
db.session.commit()
|
|
||||||
if not success:
|
if not success:
|
||||||
flash('There was a problem while trying to unsubscribe', 'error')
|
flash('There was a problem while trying to unsubscribe', 'error')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue