social
social copied to clipboard
Connectivity issue with Pleroma
Describe the bug
Pleroma can't follow Nextcloud/Social users or receive posts from them (while for Mastodon it works just fine).
- Pleroma cannot fetch the user info when searching '@[email protected]';
- After I edited the code and added
Content-Type: application/activity+json
header (see below) to make the follow work, Pleroma still cannot receive posts.
To Reproduce
1. Cannot fectch info
Steps to reproduce the behavior:
- Fresh install Nextcloud 20.0.4.
- Install
Social (0.4.2)
from/settings/apps
- Search
@[email protected]
on Pleroma and Mastodon respectively - Pleroma shows no matching user while Mastodon correctly shows
@[email protected]
This is probably because Pleroma doesn't accept Content-Type
s other than application/activity+json
and application/ld blah blah
(see a Pleroma issue for more information)
So I added a Content-Type: application/activity+json
to the TNCDataResponse
, and the fetching and following works now.
2. Cannot receive posts
I suspect that this, too, could have something to do with Content-Type: application/activity+json
. But I am not familiar with the structure of Nextcloud or Social, so I might not be able to investigate further.
Expected behavior
This should works with Pleroma.
Client details:
- Environment:
- Pleroma: 2.2.0-2-g6e7963cc
- Social: 0.4.2
- Nextcloud: 20.0.4
Server details
**Social app version:** 0.4.2 **Operating system**: Ubuntu 20.04 LTS **Web server:** Nginx 1.19.5 **Database:** MySQL **PHP version:** 7.4 **Nextcloud version:** (see Nextcloud admin page) 20.0.4Logs
Nextcloud log (data/nextcloud.log)
(Might be too large, will upload if needed later)
Browser log
(Irrelevant to the issue)
Edit:
- Adding
Content-Type: application/activity+json
to theTNCDataResponse
only makes fetching actors work. (The following works on my end because I've configured nginx (on pleroma server) to modify the headers of all request to Pleroma'sinbox
, and therefore Pleroma recognizes theAccept
activity.) - Since I've edited the headers, my Pleroma seems to be accepting posts. However, I can only see the posts in the Pleroma's admin panel, not in the follower's timeline nor in the global timeline (so I thought posts wasn't received). This might be a problem with pleroma itself.