From 8fd5a9292c7d3aac352d3c0e96288bff8a79cb47 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Fri, 11 Nov 2022 23:04:43 -0700 Subject: Posting and fan-out both working --- users/views/identity.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'users/views') diff --git a/users/views/identity.py b/users/views/identity.py index 6205145..3bcf5c5 100644 --- a/users/views/identity.py +++ b/users/views/identity.py @@ -36,12 +36,12 @@ class ViewIdentity(TemplateView): local=False, fetch=True, ) - statuses = identity.statuses.all()[:100] + posts = identity.posts.all()[:100] if identity.data_age > settings.IDENTITY_MAX_AGE: identity.transition_perform(IdentityStates.outdated) return { "identity": identity, - "statuses": statuses, + "posts": posts, "follow": Follow.maybe_get(self.request.identity, identity) if self.request.identity else None, @@ -232,9 +232,11 @@ class Inbox(View): if not identity.verify_signature( signature_details["signature"], headers_string ): + print("Bad signature!") + print(document) return HttpResponseUnauthorized("Bad signature") # Hand off the item to be processed by the queue - InboxMessage.objects.create(message=document, state_ready=True) + InboxMessage.objects.create(message=document) return HttpResponse(status=202) -- cgit v1.2.3