Tweak is_public check for activities

master
Thomas Sileo 2019-04-14 12:19:21 +02:00
rodzic 26f1e71590
commit 7e5b7c1c24
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -784,8 +784,9 @@ class Create(BaseActivity):
"""Returns True if the activity is addressed to the special "public" collection."""
for field in ["to", "cc", "bto", "bcc"]:
if field in self._data:
if AS_PUBLIC in self._data[field]:
if AS_PUBLIC in _to_list(self._data[field]):
return True
return False
def _set_id(self, uri: str, obj_id: str) -> None: