Revert changes from earlier commit (likely candidate for breaking celery)

This commit is contained in:
freamon 2024-06-14 14:20:54 +01:00
parent 49a4ef3b4e
commit c481919ded

View file

@ -757,8 +757,8 @@ def process_inbox_request(request_json, activitypublog_id, ip_address):
# Lemmy can send Announce/Update without ever sending an Announce/Create
# presumably happens with quick edits after creation (e.g. https://midwest.social/post/13348959)
# Pretend this activity was the Create, and try again.
request_json['object']['type'] = 'Create'
process_inbox_request(request_json, activitypublog_id, ip_address)
#request_json['object']['type'] = 'Create'
#process_inbox_request(request_json, activitypublog_id, ip_address)
elif request_json['object']['object']['type'] == 'Note':
reply = PostReply.query.filter_by(ap_id=request_json['object']['object']['id']).first()
if reply:
@ -772,8 +772,8 @@ def process_inbox_request(request_json, activitypublog_id, ip_address):
else:
activity_log.exception_message = 'PostReply not found'
# As with Update/Page, pretend this activity was the Create, and try again.
request_json['object']['type'] = 'Create'
process_inbox_request(request_json, activitypublog_id, ip_address)
#request_json['object']['type'] = 'Create'
#process_inbox_request(request_json, activitypublog_id, ip_address)
elif request_json['object']['type'] == 'Undo':
if request_json['object']['object']['type'] == 'Like' or request_json['object']['object']['type'] == 'Dislike':
activity_log.activity_type = request_json['object']['object']['type']