mastodon / mastodon-android

Official Android app for Mastodon
https://app.joinmastodon.org/android
GNU General Public License v3.0
1.67k stars 256 forks source link

Friendica not supported? #23

Open kr428 opened 2 years ago

kr428 commented 2 years ago

I see loma.ml (a Friendica instance I make daily use of) appear in the list of servers but can't connect, just selecting the server and saying "Next" in the login screen will cause a "Missing parameter" message instead of a redirect to the browser for login. Is Friendica supported? Any way to track this down?

grishka commented 2 years ago

This is something the server doesn't like. Please do keep in mind that this app officially only works with Mastodon, though I removed the requirement for short_description field in instance object so people could log into Pleroma instances.

D/MastodonAPIController: [no-auth] Sending request: Request{method=POST, url=https://loma.ml/api/v1/apps, tags={}}
D/MastodonAPIController: [no-auth] Request{method=POST, url=https://loma.ml/api/v1/apps, tags={}} received response: Response{protocol=h2, code=422, message=, url=https://loma.ml/api/v1/apps}
W/MastodonAPIController: [no-auth] Response{protocol=h2, code=422, message=, url=https://loma.ml/api/v1/apps} received error: {"error":"Fehlende Parameter"}
kr428 commented 2 years ago

Ah ok, thanks, wasn't aware there's already server communication happening at this point. So I'll ask the Friendica crowd. 🙂

csolisr commented 2 years ago

Regarding Pleroma, I also asked them to add support for the short_description field: https://git.pleroma.social/pleroma/pleroma/-/issues/2865

@grishka I'll check if the update for the Mastodon app is up and test with my Pleroma instance.

foss- commented 2 years ago

@grishka are you saying Log in for friendica now should work? Still seeing the error reported by OP.

What I find interesting is that Log in in Mastodon for iOS works perfectly fine using friendica accounts. Wondering if it is a shortcoming on friendica's side or the Mastodon Android app.

Edit: Curiously signup worked on one instance but not on another. friendica version claiming both instances running same version, same database and post update versions.

foss- commented 1 year ago

Retested and was able to connect friendica account without issues. 2022-12dev. Is this persisting for you @kr428 ?

kr428 commented 1 year ago

Hmmm. Tried that on loma.ml which just has been upgraded to some 2022-12 version, error seems to persist?

foss- commented 1 year ago

Can you share which error message you are seeing and could you request logs from your instance admin?

kr428 commented 1 year ago

Error message is still "missing parameters" in the frontend without anything else. As for the logs, I'll see whether I can get hold of them.