Automattic / wordpress-activitypub

ActivityPub for WordPress
https://wordpress.org/plugins/activitypub/
MIT License
490 stars 73 forks source link

Is there someone who got this working on wordpress.com hosted instances #301

Closed anantshri closed 1 year ago

anantshri commented 1 year ago

Seems like the caching is too aggressive on wordpress.com and it doesn't respect the accept headers. I have been trying to get this to work properly and so far have failed miserably.

image

url : https://blog.anantshri.info user: anantshri

plugin installed : webmentions, indieweb plugin, activitypub, webfinger, nodeinfo

@anantshri@blog.anantshri.info is suppose to be the fediverse id. seems like webfinger is working https://webfinger.net/lookup/?resource=anantshri%40blog.anantshri.info

Any help or pointer appreciated.

Problems

  1. Site health says not a valid json response on author profile (I think what i showed above could be reason for that)
  2. Even if i am able to see my id on other servers if i click follow i dont see followers nor i see a approval request.
  3. My fediverse tool of choice is gotosocial and it errors out with a message
    error enriching account from remote: enrichAccount: error dereferencing account https://blog.anantshri.info/author/anantshri/: ResolveAccountable: error unmarshalling bytes into json: unexpected end of JSON input

    which could be due to caching, but i am clueless on how to handle it. hence raising a request here to get a pointer as to what could be wrong.

jeherve commented 1 year ago

Seems like the caching is too aggressive on wordpress.com and it doesn't respect the accept headers.

That's indeed something that should be fixed in the caching solution used on WordPress.com. The problem is currently tracked here: https://github.com/Automattic/batcache/issues/104

anantshri commented 1 year ago

ohk this seems to working now. i will report back in 48 hours after testing a few more things and hopefully by then it should be working across wp.com all the way.

I have got a follow from calckey, gotosocial and one mastodon instance. will check some more softwares and update.

anantshri commented 1 year ago

this working as expected so far.

image

That's gotosocial, calckey, mastodon, bookwrym and kbin in that order. all appearing clearly as followers.

Thanks folks. Can confirm its working.