social icon indicating copy to clipboard operation
social copied to clipboard

Follow in both directions doesn't work

Open pwFoo opened this issue 6 years ago • 9 comments

Try to follow a user (follow looks good, but follow count in profile is still 0) of an external (mastodon) instance or follow the nextcloud social user (shown as pending) doesn't work.

Nextcloud with social is running in docker (official stable-apache image) with reverse proxy (tls offloading, Nextcloud and talk app works fine) in front.

pwFoo avatar Jul 13 '19 14:07 pwFoo

It can be related to my problem in the other issue: https://github.com/nextcloud/social/issues/570#issuecomment-499393100

lachmanfrantisek avatar Jul 13 '19 18:07 lachmanfrantisek

I'm not able to follow anyone either, I can search just fine but they do not show up in my follower count or timeline when I click 'Follow'. Attempting to post a message does not work either.

I am also running in Docker behind a reverse proxy. Social app 0.2.6 / Nextcloud 16.0.1

I am able to successfully show my user account information by using the webfinger

oakbrad avatar Jul 15 '19 18:07 oakbrad

please provide logs from your httpd and your nextcloud. You should set 'loglevel' => 1, in config/config.php

ArtificialOwl avatar Sep 16 '19 09:09 ArtificialOwl

i have the same issue, in the nextcloud logs this shows up:

Public key not found for key nextcloud-url/apps/social@username#main-key

and in the same logs when i try to follow it from the outside i get this:

{"reqId":"REeRyHdvzMcCu6f7JR0k","level":2,"time":"2019-10-05T18:34:44+00:00","remoteAddr":"109.91.34.181","user":"username","app":"no app in context","method":"GET","url":"/apps/social/api/v1/ostatus/link/username/otherusername@mastodon.social","message":"500 - {"status":-1,"exception":"OCA\\Social\\Exceptions\\RequestContentException","message":"404 - {\"protocol\":\"https\",\"host\":\"mastodon.social\",\"url\":\"\/.well-known\/webfinger\",\"timeout\":10,\"type\":0,\"data\":{\"resource\":\"acct:otherusername@mastodon.social\"}}"}","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0","version":"16.0.5.1"}

Grosskopf avatar Oct 05 '19 18:10 Grosskopf

Fixed it some time ago by reset social plugin in cli.

pwFoo avatar Oct 06 '19 07:10 pwFoo

I have the same problem and I get the same error message that @Grosskopf posted. Running occ social:reset unfortunately did not help. How can we fix this?

NiklasRosenstein avatar Dec 22 '19 12:12 NiklasRosenstein

I found https://github.com/nextcloud/social/issues/294 which mentioned the webfinger configuration as a potential source of problems related to the Social app, and I figured my webfinger configuration looked different.

-  location =/.well-known/webfinger {
-    return 301 $scheme://$host/public.php?service=webfinger;
-  }
+  rewrite ^/.well-known/webfinger /public.php?service=webfinger last;

After applying the above update to my NGinx configuration, I find that following works "a bit more" than before, but it's not there yet. While the user I'm trying to follow shows up in my "Following" list, it still showed a count of "0" for a long while (it eventually updated though) and my Global Timeline appears as empty still. In the logs I find the following message after pressing Follow:

[social] Info: LinkedDataSignatureMissingException while checkObject : missing signature --- {"@context":["https:\/\/www.w3.org\/ns\/activitystreams"],"id":"https:\/\/mastodon.social\/users\/REDACTED#accepts\/follows\/REDACTED","type":"Accept","actor":"https:\/\/mastodon.social\/users\/REDACTED","object":{"id":"https:\/\/REDACTED\/c328ee19-d513-43eb-b141-5bf8be1aad01","type":"Follow","actor":"https:\/\/REDACTED\/apps\/social\/@niklas","object":"https:\/\/mastodon.social\/users\/REDACTED"}}

POST /apps/social/@niklas/inbox
from 148.251.134.157 at 2019-12-22T12:13:31+00:00

Curiously, I can also no longer find the Nextcloud account by searching for @nextcloud.

NiklasRosenstein avatar Dec 22 '19 12:12 NiklasRosenstein

I'm new to Mastodon, and apparently you only see message in the Global Timeline that have been posted after you started following that person. 😄 It seems to be working then after updating the webfinger configuration.

NiklasRosenstein avatar Dec 22 '19 12:12 NiklasRosenstein

I tried to follow nextcloud social account from mastodon and it fails because of a redirect to the login page? Take a look into web developer console. Haven't copied the line, but it says "redirect isn't allowed", because the /domain/@<USER> redirects to the nextcloud login page.

pwFoo avatar Jan 12 '21 19:01 pwFoo