Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connectivity between Friendica and Hubzilla does not work always #14145

Open
rocky-III opened this issue May 11, 2024 · 5 comments
Open

Connectivity between Friendica and Hubzilla does not work always #14145

rocky-III opened this issue May 11, 2024 · 5 comments

Comments

@rocky-III
Copy link

Connectivity between Friendica and Hubzilla does not work always and i asked the main DEV of HZ for reason. That is what he wrote to me:

Hab da mal jetzt nachgesehn. Sind wohl drei Sachen die schief laufen:

    Unter bestimmten Umständen fehlte beim Hubzilla Profil hcard Info die vom Diaspora Protokoll benötigt wird (is gefixt)
    
friendica ruft beim verbinden eine hardcoded URL auf die es bei Hubzilla schon lange nicht mehr gibt "https://github.com/friendica/friendica/blob/765af10f00728b1421a9eb633e0afc1948168eee/src/Network/Probe.php#L845
    

Bei Friendica sollte man beim verbinden sichercheitshalber immer das gewünschte Protokoll für die Verbindung angeben. Das geht in der Form [activitypub]nick@server.tld oder eben [friendica-over-diaspora]nick@server.tld

thanks for having a look into it

@rocky-III rocky-III added the Bug label May 11, 2024
@annando
Copy link
Collaborator

annando commented May 11, 2024

That probe line doesn't matter, since this is only for informational purposes, since we don't support Zot. But is good to know, that one has to provide some workaround in Hubzilla to provide the protocol. In Friendica we simply collect a list of supported protocols on the other side and then chose the best one. We prioritize ActivityPub here.

@rocky-III
Copy link
Author

thanks... so what does prevent connectivity between Friendica and Hubzilla from you perspective? It is a pity that this two project do not connect without total fail outs . What could be done to make things better here?
thanks for looking in to it.

@annando
Copy link
Collaborator

annando commented May 11, 2024

Well, I could imagine that Hubzilla has got problems, when we reply via ActivityPub although the connection had been established via Diaspora, but this is a very wild guess. I also don't know, if Hubzilla supports the field we added in our ActivityPub posts, so that replies via ActivityPub from Friendica systems can be relayed to Diaspora systems.

@git-marijus
Copy link

@annando the supported protocols in Hubzilla can vary by channel. I have tested with a channel where AP was disabled. The connection request via diaspora protocol returned 202 from Friendica but the request itself never appeared in the UI at my testaccount on libranet.de

@rocky-III
Copy link
Author

Ok here what i found out with some help:

The problem is that in the past things between HZ and Friendica have worked with the Diaspora Protocol - but Friendica has increasingly switched to ActivityPub, which also affects communication with HZ.

Unfortunately, HZ does not currently automatically switch to ActivityPub when a contact request is sent to Friendica. But you can force this by putting an [activitypub] in front of the address to be contacted.e.g. if you want to contact to channel @name@server.tld

you enter [activitypub]name@server.tld

in the contact request under

/connections

Unfortunately, things seem to get tangled up due to previous failed attempts via the Diaspora protocol... So please do the test with a very fresh HZ channel... i.e. one that has not yet tried to contact name@server.tld via the diaspora protocol.

created an fresh channel under:

/manage

and see if things work better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants