• Resolved Regenpfeifer

    (@regenpfeifer)


    Hello,

    I have installed the ActivityPub plugin and tried to connect to my WordPress blog via my Friendica-site https://friends.regenpfeifer.net

    But when I am adding [email protected] as contact to Friendica I am getting an RSS/ATOM-connection, not ActivityPub.

    Is there anything I have to set in WordPress or Friendica in order to get an ActivityPub-connection to work?

    Thank you very much,
    @regenpfeifer

    The page I need help with: [log in to see the link]

Viewing 13 replies - 16 through 28 (of 28 total)
  • Plugin Author Matthias Pfefferle

    (@pfefferle)

    @regenpfeifer I am not sure if it is a cloudflare problem, but your site seems to ignore the accept header:

    curl "https://regenpfeifer.eu/author/regenpfeifer/" \
         -H 'Accept: application/activity+json'

    I see a lot of cloud flare header, so it may be the issue. Can you bypass requests with special accept headers?

    Plugin Author Matthias Pfefferle

    (@pfefferle)

    @tiotrom the problem with your site is, that it redirects to www.tiotrom.com so your identifier is: [email protected] ??

    Ah yes thanks a lot. It works now with www. One more question, what about websites that are installed in a sub-directory? We have this website https://www.trade-free.org/directory and [email protected]/directory does not work.

    Plugin Author Matthias Pfefferle

    (@pfefferle)

    @tiotrom WebFinger needs to be at the root of the domain and if you have WordPress installed in a subdirectory, WordPress is not able to handle the request.

    An example: WebFinger tries to get infos about an email like identivier like that:

    https://www.trade-free.org/.well-known/webfinger?resource=acct%3Atradefree_azrarp%40www.trade-free.org

    and because WordPress is in a subdirectory it cann not handle the request.

    You can try to rewrite the URL above to:

    https://www.trade-free.org/directory/.well-known/webfinger?resource=acct%3Atradefree_azrarp%40www.trade-free.org

    using mod_rewrite or something similar.

    Maybe this discussion may help you: https://github.com/pfefferle/wordpress-activitypub/issues/37

    Thread Starter Regenpfeifer

    (@regenpfeifer)

    Thank you, @pfefferle, for your explanation.

    I am not sure how I could manage this: to “bypass requests with special accept headers”. What headers should I have to set and where shall I do this?

    Thank you, yours @regenpfeifer

    Thread Starter Regenpfeifer

    (@regenpfeifer)

    I have found these resources:

    1) https://developer.mozilla.org/de/docs/Web/HTTP/Headers/Accept
    So I think, that I have to add the accept headers for Activity Pub in my VHost-configuration. But I am not sure about the settings – maybe:
    “Accept: application/activity+json”?

    2) Cloudflare seems not to change headers: https://support.cloudflare.com/hc/de/articles/200170986-Wie-behandelt-Cloudflare-HTTP-Anfrage-Header-

    I have now added this header in my Apache VHost-configuration for my WordPress site: Header always set Accept “application/activity+json”

    It seems, that this enables ActivityPub-connection with Friendica. But the contact is added as “mastodon (AP)” not as “WordPress AP” and there are no options for contact settings.

    Furthermore, the accept header has only effect with “[email protected]”, not with another site and “[email protected]”, there the contact will be found in a first step with its ActivityPub-author-URL, but after that it is added as Atom/RSS.

    • This reply was modified 3 years, 11 months ago by Regenpfeifer.
    • This reply was modified 3 years, 11 months ago by Regenpfeifer.
    • This reply was modified 3 years, 11 months ago by Regenpfeifer.
    Thread Starter Regenpfeifer

    (@regenpfeifer)

    Hello @pfefferle, another update:

    I am testing with two sites:

    • regenpfeifer.eu
    • sehnsuchtswochen.de

    It seems, that I could solve the problems with sehnsuchtswochen.de: There it was the plugin WP Super Cache; I had to deactivate the setting “304-Browser-Caching”.

    Now I can connect sehnsuchtswochen.de to my friendica-site friends.regenpfeifer.net and the contact is correctly set to “WordPress (AP)”

    But I am still having problems with regenpfeifer.eu: I can connect via Activity Pub, but the contact is not set to WordPress, but to “mastodon (AP)”.

    Both sites seem to produce similar output when I am checking with:

    curl "https://regenpfeifer.eu/author/regenpfeifer/" \    
         -H 'Accept: application/activity+json'

    Any idea for what reason the contacts from regenpfeifer.eu are set to “mastodon (AP)”?

    Thank you very much,
    yours @regenpfeifer

    Plugin Author Matthias Pfefferle

    (@pfefferle)

    @regenpfeifer I am not an friendica expert, so I am not sure why it is listed as a mastodon instance. Have you installed the nodeinfo plugin (only) for one of these sites? Is it a problem that it is listed as mastodon? I think it should work anyways.

    Thread Starter Regenpfeifer

    (@regenpfeifer)

    Thank you @pfefferle! I very much appreciate this great plugin!

    I have installed on both sites the ActivityPub and the Nodes plugins, as I thought it would be useful to combine both. Basically it’s not a problem, that contacts from one of my sites (regenpfeifer.eu) are listed as “mastodon (AP)”. But I am always suspicious if something doesn’t work as expected. I just want to be sure that I have the correct settings, because I would like to use my WordPress and Friendica sites for a productivity workflow.

    I will ask for support in the Friendica User Forum, if i get a solution there, I will write it here.

    Thank you, yours, @regenpfeifer

    A follow-up: I moved my websites to a new server. All work with activitypub, except [email protected] that seem to not work anymore. I re-enabled the plugin and all that. Cannot make it work. Any idea why?

    • This reply was modified 3 years, 8 months ago by tiotrom.

    Oh ok so deactivating wp fastest cache plugin makes it work…I see others talking about this as a solution. Does it mean that caching plugins are breaking this one?

    Plugin Author Matthias Pfefferle

    (@pfefferle)

    @tiotrom I am not aware that it is a general problem. Is it really completely not working together or is clearing/refreshing the cache the solution?

Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘Can#t connect from my friendica site’ is closed to new replies.