Browse Source

Reformat

pull/39/head
Dashie der otter 1 year ago
parent
commit
d45ce919b6
Signed by: dashie <rhaamo@leloop.org> GPG Key ID: C2D57B325840B755
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      activitypub/utils.py

+ 2
- 2
activitypub/utils.py View File

@@ -79,9 +79,9 @@ def clean_activity(activity: ObjectType) -> Dict[str, Any]:
"""
for field in ["bto", "bcc", "source"]:
if field in activity:
del (activity[field])
del activity[field]
if activity["type"] == "Create" and field in activity["object"]:
del (activity["object"][field])
del activity["object"][field]
return activity




Loading…
Cancel
Save