Activitypub does not work

Hi, I have installed Activitypub on my site it-blogger.dk. However my posts and profile does not show up on Mastodon. On my WP health check page I get the mistake:

Webfinger endpoint is not accessible
Your WebFinger endpoint https://www.it-blogger.dk/.well-known/webfinger?resource=acct:andreas@www.it-blogger.dk does not return valid JSON for application/jrd+json.

My site is on a shared host on a Litespeed server. How can I fix the mistake?

6 thoughts on “Activitypub does not work

  1. Hi @aphandersen it seems to be a configuration problem on your host. Sadly I have no experience with lightspeed. Do you have the possibility to add something like rewrite rules?

    1. Yes, I can change these in the .htaccess file. I have tried to add the line:

      RedirectMatch "^\/\.well-known(.*)$" "\/\/\.well-known$1"

      But that did not fix the problem.

        1. I have a similar warning from Site Health, and evidence seems to back it up:

          Your author URL https://roosenmaallen.com/author/admin/ does not return valid JSON for application/activity+json. Please check if your hosting supports alternate Accept headers.

          erose@lorge:~$ curl -i https://roosenmaallen.com/author/admin/ -H "Accept: application/activity+json" --http1.1
          HTTP/1.1 200 OK
          Content-Type: application/activity+json
          Transfer-Encoding: chunked
          Connection: keep-alive
          Keep-Alive: timeout=15
          Date: Sat, 28 May 2022 17:32:59 GMT
          Server: Apache
          Link: ; rel="https://api.w.org/", ; rel="alternate"; type="application/json"

          erose@lorge:~$ curl -i https://roosenmaallen.com/author/admin/ -H "Accept: application/activity+json"
          HTTP/2 200
          content-type: application/activity+json
          date: Sat, 28 May 2022 17:33:09 GMT
          server: Apache
          link: ; rel="https://api.w.org/", ; rel="alternate"; type="application/json"

          erose@lorge:~$

  2. Hi,

    I’m attempting to get ActivityPub working, but am unable to follow my site’s author on Mastodon. Site health reports that the webfinger endpoint is accessible although it does not seem to be printing to source. I’ve tried both amanda@arush.io and https://arush.io/author/amanda but no luck. Any help would be greatly appreciated and thanks for all your work.

    The site I need help with is https://arush.io

    1. @arush I checked your site and everything seems fine. I also tried to follow your site and this seems also fine, but Mastodon does not seem to get the Accept Activity from your site and stays in “pending” mode. Besides of that, I can see your profile and three posts on mastodon. I will check why it does not send the Accept (or maybe this simply lasts a bit).

Skriv et svar

Din e-mailadresse vil ikke blive publiceret. Krævede felter er markeret med *