mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
Add msg to ap log if local user not found
This commit is contained in:
parent
15507efd73
commit
b374e3031b
1 changed files with 8 additions and 1 deletions
|
@ -1273,6 +1273,9 @@ def process_user_follow_request(request_json, activitypublog_id, remote_user_id)
|
|||
activity_log.result = 'success'
|
||||
else:
|
||||
activity_log.exception_message = 'Error sending Accept'
|
||||
else:
|
||||
activity_log.exception_message = 'Could not find local user'
|
||||
activity_log.result = 'failure'
|
||||
|
||||
db.session.commit()
|
||||
|
||||
|
@ -1285,6 +1288,10 @@ def process_user_undo_follow_request(request_json, activitypublog_id, remote_use
|
|||
if local_user:
|
||||
db.session.query(UserFollower).filter_by(local_user_id=local_user.id, remote_user_id=remote_user.id, is_accepted=True).delete()
|
||||
activity_log.result = 'success'
|
||||
else:
|
||||
activity_log.exception_message = 'Could not find local user'
|
||||
activity_log.result = 'failure'
|
||||
|
||||
db.session.commit()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue