tolerate fediverse Notes without "cc"s

This commit is contained in:
jesopo 2020-01-18 14:02:16 +00:00
parent 631e669426
commit 47f7c7a595

View file

@ -124,7 +124,9 @@ class Module(ModuleManager.BaseModule):
nonreply = [actor.followers]
first_item = None
for item in items:
if item["type"] == "Announce" or item["object"]["cc"] == nonreply:
if (item["type"] == "Announce" or
not "cc" in item["object"] or
item["object"]["cc"] == nonreply):
first_item = item
break