social icon indicating copy to clipboard operation
social copied to clipboard

Compatibility with 3rdparty Mastodon apps

Open ArtificialOwl opened this issue 4 years ago • 6 comments

Make it doable for a Mastodon client app to connect to an account from Nextcloud Social.

Tested clients: https://github.com/nextcloud/social/blob/master/docs/3rd-party-fediverse-clients.md

ArtificialOwl avatar Sep 10 '20 22:09 ArtificialOwl

We have to check which route/url the Mastodon/ActivityPub clients are using, possibly we could handle it in the core via htaccess much like we do in Talk with /call/ which doesn’t actually exist.

As talked about @daita @icewind1991

jancborchardt avatar Oct 15 '20 12:10 jancborchardt

We have to check which route/url the Mastodon/ActivityPub clients are using, possibly we could handle it in the core via htaccess much like we do in Talk with /call/ which doesn’t actually exist.

As talked about @daita @icewind1991

Here are the requests I see on my instance when trying to set up a 3rdparty mastodon app:

91.87.150.82 - - [20/Oct/2020:18:52:28 +0200] "GET /favicon.ico HTTP/2.0" 302 638 "-" "MastodonApp/1.11.6 (iPhone; iOS 14.0.1; Scale/2.00)"
91.87.150.82 - - [20/Oct/2020:18:52:28 +0200] "GET /api/v1/instance HTTP/2.0" 302 638 "-" "MastodonApp/1.11.6 (iPhone; iOS 14.0.1; Scale/2.00)"
91.87.150.82 - - [20/Oct/2020:18:52:28 +0200] "GET /index.php/login HTTP/2.0" 200 3901 "-" "MastodonApp/1.11.6 (iPhone; iOS 14.0.1; Scale/2.00)"

StCyr avatar Oct 20 '20 16:10 StCyr

Ah cool, thanks a lot @StCyr! :) @daita @icewind1991 check it out.

jancborchardt avatar Oct 22 '20 12:10 jancborchardt

So, here are some more debug info:

iMast:

[22/Oct/2020:15:34:30 +0200] "GET /apps/social/api/v1/instance HTTP/2.0" 500 6725 "-" "iMast/5.1 (jp.pronama.imast; build:225; iOS 14.0.1) Alamofire/4.9.1"

{"reqId":"pkH9Hj9bAOrz8xg2ml1Q","level":3,"time":"2020-10-22T13:34:31+00:00","remoteAddr":"91.87.150.82","user":"--","app":"index","method":"GET","url":"/apps/social/api/v1/instance","message":"{\"Exception\":\"OCA\\\\Social\\\\Exceptions\\\\InstanceDoesNotExistException\",\"Message\":\"\",\"Code\":0,\"Trace\":[{\"file\":\"/var/www/nextcloud/apps/social/lib/Db/InstancesRequest.php\",\"line\":78,\"function\":\"getInstanceFromRequest\",\"class\":\"OCA\\\\Social\\\\Db\\\\InstancesRequestBuilder\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/apps/social/lib/Service/InstanceService.php\",\"line\":86,\"function\":\"getLocal\",\"class\":\"OCA\\\\Social\\\\Db\\\\InstancesRequest\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/apps/social/lib/Controller/ApiController.php\",\"line\":252,\"function\":\"getLocal\",\"class\":\"OCA\\\\Social\\\\Service\\\\InstanceService\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php\",\"line\":169,\"function\":\"instance\",\"class\":\"OCA\\\\Social\\\\Controller\\\\ApiController\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php\",\"line\":100,\"function\":\"executeController\",\"class\":\"OC\\\\AppFramework\\\\Http\\\\Dispatcher\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/private/AppFramework/App.php\",\"line\":152,\"function\":\"dispatch\",\"class\":\"OC\\\\AppFramework\\\\Http\\\\Dispatcher\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/lib/private/Route/Router.php\",\"line\":308,\"function\":\"main\",\"class\":\"OC\\\\AppFramework\\\\App\",\"type\":\"::\"},{\"file\":\"/var/www/nextcloud/lib/base.php\",\"line\":1009,\"function\":\"match\",\"class\":\"OC\\\\Route\\\\Router\",\"type\":\"->\"},{\"file\":\"/var/www/nextcloud/index.php\",\"line\":37,\"function\":\"handleRequest\",\"class\":\"OC\",\"type\":\"::\"}],\"File\":\"/var/www/nextcloud/apps/social/lib/Db/InstancesRequestBuilder.php\",\"Line\":121,\"CustomMessage\":\"--\"}","userAgent":"iMast/5.1 (jp.pronama.imast; build:225; iOS 14.0.1) Alamofire/4.9.1","version":"20.0.0.9"}

Amaroq

[22/Oct/2020:14:51:13 +0200] "POST /apps/social/api/v1/apps HTTP/2.0" 405 602 "-" "DireFloof/1.1.18 (iPhone; iOS 14.0.1; Scale/2.00)"

Oyakodon

 "POST /apps/social/api/v1/apps HTTP/2.0" 405 993 "-" "Oyakodon/3 CFNetwork/1197 Darwin/20.0.0"

Librem Social

 "POST /apps/social/api/v1/apps HTTP/2.0" 405 995 "-" "LibremSocial/1.0.3 (iPhone; iOS 14.0.1; Scale/2.00)"

StCyr avatar Oct 22 '20 13:10 StCyr

I see the readme lists Mastodon now and that the app description was update a bit over a year ago... has progress been made on what's talked about here since the last post in this issue or is this where things still stand?

genebean avatar May 14 '22 16:05 genebean

It doesn't feel like nextcloud social is a very actived and maintain app.

Thatoo avatar May 14 '22 17:05 Thatoo