mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
PeerTube: ignore incoming 'View' activity
This commit is contained in:
parent
4c1f5cad53
commit
97d1ba0fbb
1 changed files with 7 additions and 0 deletions
|
@ -412,6 +412,13 @@ def shared_inbox():
|
|||
else:
|
||||
process_delete_request.delay(request_json, activity_log.id, ip_address())
|
||||
return ''
|
||||
# Ignore PeerTube View activity
|
||||
if 'type' in request_json and request_json['type'] == 'View':
|
||||
activity_log.result = 'ignored'
|
||||
activity_log.exception_message = 'PeerTube View activity'
|
||||
db.session.add(activity_log)
|
||||
db.session.commit()
|
||||
return ''
|
||||
else:
|
||||
activity_log.activity_id = ''
|
||||
if g.site.log_activitypub_json:
|
||||
|
|
Loading…
Add table
Reference in a new issue