Tweak the actor hash for the CI
This commit is contained in:
parent
db10d8bcb5
commit
5a9f7801b4
1 changed files with 4 additions and 3 deletions
|
@ -93,9 +93,10 @@ def _actor_hash(actor: ap.ActivityType, local: bool = False) -> str:
|
||||||
h.update(actor.icon["url"].encode())
|
h.update(actor.icon["url"].encode())
|
||||||
if local:
|
if local:
|
||||||
# The local hash helps us detect when to send an Update
|
# The local hash helps us detect when to send an Update
|
||||||
for item in actor.attachment:
|
if actor.attachment:
|
||||||
h.update(item["name"].encode())
|
for item in actor.attachment:
|
||||||
h.update(item["value"].encode())
|
h.update(item["name"].encode())
|
||||||
|
h.update(item["value"].encode())
|
||||||
h.update(("1" if actor.manuallyApprovesFollowers else "0").encode())
|
h.update(("1" if actor.manuallyApprovesFollowers else "0").encode())
|
||||||
return h.hexdigest()
|
return h.hexdigest()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue