From a62cf06f1bd7c4e65081e9ef4aac4ed13ebcf4ee Mon Sep 17 00:00:00 2001 From: Jaidyn Ann <10477760+JadedCtrl@users.noreply.github.com> Date: Sat, 8 Jun 2024 16:12:02 -0500 Subject: [PATCH] Fix HTTP-signatures vis-a-vis Pleroma --- src/activitypub-servist.lisp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/activitypub-servist.lisp b/src/activitypub-servist.lisp index fcf821a..56fc305 100644 --- a/src/activitypub-servist.lisp +++ b/src/activitypub-servist.lisp @@ -116,7 +116,7 @@ the plist in the docstring for its WEBTENTACLE:SERVER function." type "application/activity+json") (href ,profile rel "self" - type "application/activity+json") + type "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") (template ,(str:concat "https://" (cdr userhost) "/ostatus_subscribe?acct={uri}") rel "http://ostatus.org/schema/1.0/subscribe")))))) @@ -142,6 +142,7 @@ the plist in the docstring for its WEBTENTACLE:SERVER function." (yason:with-output-to-string* () (yason:encode-alist `(("@context" . ("https://www.w3.org/ns/activitystreams" + "https://w3id.org/security/v1" "https://litepub.social/litepub/context.jsonld")) ("endpoints" . ,(alexandria:plist-hash-table (list "sharedInbox" "https://etc.xwx.moe/inbox"))) ("url" . ,user-root) @@ -179,7 +180,7 @@ Mi ne estas knabino!!") ;; ———————————————————————————————————————— (defun note-json (from to text) "The JSON of a user's actor." - (let* ((user-root (str:concat "https://etc.xwx.moe/u/" from)) + (let* ((user-root from) (yason:*symbol-encoder* 'yason:encode-symbol-as-lowercase)) (yason:with-output-to-string* () (yason:encode-alist