mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-24 03:43:42 -08:00
PeerTube: ignore incoming 'CacheFile' activity
This commit is contained in:
parent
1d9c176c7c
commit
21afa9a6aa
1 changed files with 8 additions and 0 deletions
|
@ -419,6 +419,14 @@ def shared_inbox():
|
||||||
db.session.add(activity_log)
|
db.session.add(activity_log)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
return ''
|
return ''
|
||||||
|
# Ignore PeerTube CacheFile activity
|
||||||
|
if 'object' in request_json and 'type' in request_json['object'] and request_json['object']['type'] == 'CacheFile':
|
||||||
|
activity_log.result = 'ignored'
|
||||||
|
activity_log.exception_message = 'PeerTube CacheFile activity'
|
||||||
|
db.session.add(activity_log)
|
||||||
|
db.session.commit()
|
||||||
|
return ''
|
||||||
|
|
||||||
else:
|
else:
|
||||||
activity_log.activity_id = ''
|
activity_log.activity_id = ''
|
||||||
if g.site.log_activitypub_json:
|
if g.site.log_activitypub_json:
|
||||||
|
|
Loading…
Add table
Reference in a new issue