Use also attributedTo for ActivityPub object actor_id's

merge-requests/152/head
Jason Robinson 2019-08-06 01:28:55 +03:00
rodzic d6dd046b94
commit ade389c236
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -189,7 +189,7 @@ def transform_attribute(key: str, value: Union[str, Dict, int], transformed: Dic
transformed["id"] = value
else:
transformed["activity_id"] = value
elif key == "actor":
elif key in ("actor", "attributedTo"):
transformed["actor_id"] = value
elif key == "content":
transformed["raw_content"] = value