Tweak the actor hash for the CI

This commit is contained in:
Thomas Sileo 2019-09-08 17:04:08 +02:00
parent db10d8bcb5
commit 5a9f7801b4

View file

@ -93,6 +93,7 @@ def _actor_hash(actor: ap.ActivityType, local: bool = False) -> str:
h.update(actor.icon["url"].encode())
if local:
# The local hash helps us detect when to send an Update
if actor.attachment:
for item in actor.attachment:
h.update(item["name"].encode())
h.update(item["value"].encode())