Remove note source when cleaning it

pull/9/head
Thomas Sileo 2018-07-07 12:50:03 +02:00
rodzic 01d325418d
commit 78846a5d26
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -125,7 +125,7 @@ def clean_activity(activity: ObjectType) -> Dict[str, Any]:
"""Clean the activity before rendering it.
- Remove the hidden bco and bcc field
"""
for field in ["bto", "bcc"]:
for field in ["bto", "bcc", "source"]:
if field in activity:
del (activity[field])
if activity["type"] == "Create" and field in activity["object"]: