diff --git a/client.py b/client.py index 0a3305d..346881b 100644 --- a/client.py +++ b/client.py @@ -5,11 +5,10 @@ from email.utils import formatdate from requests import post from sys import argv -date = formatdate(usegmt=True) - with open(argv[1], 'rb') as f: activity = f.read() +date = formatdate(usegmt=True) digester = hashes.Hash(hashes.SHA256()) digester.update(activity) digest = b64encode(digester.finalize()).decode() diff --git a/follow.jsonld b/follow.jsonld index 290ca70..facb957 100644 --- a/follow.jsonld +++ b/follow.jsonld @@ -1,6 +1,6 @@ { "@context": "https://www.w3.org/ns/activitystreams", - "id": "https://0.exozy.me/users/test.outbox/follow", + "id": "https://0.exozy.me/users/test.outbox#follow", "type": "Follow", "actor": "https://0.exozy.me/users/test.jsonld", "object": "https://social.exozy.me/users/a"