xlog
xlog copied to clipboard
Problem getting ActivityPub support to work
I have an xlog instance running on hacks.wiki. However, I'm unable to follow the @[email protected] account. I do see that 7 posts are available but can't actually the the posts or the profile image. I tried this out using Mastodon and Pleroma/Soapbox but the results are similar.
I've used the following options while generating the static site:
xlog \
-activitypub.domain hacks.wiki \
-activitypub.icon public/icon.png \
-activitypub.image public/icon.png \
-activitypub.username hacks \
-activitypub.summary "Hacks.Wiki - A wikiful of hacks"
I've also built xlog using the source code but that doesn't make any difference. Any hints on what might be an issue?
Hey @abhas thanks for the sponsorship.
I want to make sure of your usecase. are you using xlog as HTTP server on live server? if so make sure you read this first: https://xlog.emadelsaid.com/Security/
As for the activitypub integration:
- The integration implemented so far is the profile details (name, picture, description, number of posts)
- can you try to use
/public/icon.png
notice the/
in the beginning. also this is the default value so no need to specify it. - mastodon and other activity pub servers don't pull your posts. and require an active implementation to respond to follow requests and send new posts to them. that is not implemented in xlog yet as the implementation was targeting static site output of xlog not the server.
Here is what we need to do to complete the implementation:
- make sure xlog is ready to work on live environment in readonly mode without security issues.
- add handlers to respond to follow requests and keep the subscriptions stored somewhere
- when a new post is created post it to all subscribers