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

Follow in both directions doesn't work #630

Open
pwFoo opened this issue Jul 13, 2019 · 9 comments
Open

Follow in both directions doesn't work #630

pwFoo opened this issue Jul 13, 2019 · 9 comments
Labels
bug Something isn't working

Comments

@pwFoo
Copy link

pwFoo commented Jul 13, 2019

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 pwFoo added the bug Something isn't working label Jul 13, 2019
@lachmanfrantisek
Copy link

It can be related to my problem in the other issue: #570 (comment)

@oakbrad
Copy link

oakbrad commented Jul 15, 2019

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

@ArtificialOwl
Copy link
Member

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

@Grosskopf
Copy link

Grosskopf commented Oct 5, 2019

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"}

@pwFoo
Copy link
Author

pwFoo commented Oct 6, 2019

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

@NiklasRosenstein
Copy link

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
Copy link

I found #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
Copy link

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.

@pwFoo
Copy link
Author

pwFoo commented Jan 12, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants