nextcloud / social

🎉 Social can be used for work, or to connect to the fediverse!
https://apps.nextcloud.com/apps/social
GNU Affero General Public License v3.0
488 stars 59 forks source link

Following status of the follow button returns to follow after refresh. following not saved #1813

Open maximelehericy opened 1 year ago

maximelehericy commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. https://cloud.example.com/apps/social/@username/
  2. click follow
  3. remove your mouse from the button
  4. button is green, marking following
  5. refresh
  6. button is default color again, followee/follower status unchanged.

Expected behavior button should stay green, and the user added to the list of followers/followees

Screenshots initial state image after click image after refresh image

Client details:

Server details **Social app version:** 0.6.1 **Operating system**: t.nc.c **Web server:** **Database:** **PHP version:** **Nextcloud version:** (see Nextcloud admin page)
Logs #### Nextcloud log (data/nextcloud.log) ``` Insert your Nextcloud log here ``` #### Browser log ``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```
Thatoo commented 7 months ago

I face the same issue. I can't follow external users then. I can follow local users though..

And I can be followed by external users.

Thatoo commented 7 months ago

Well, I have to moderate my previous message. It seems like there is only one account I can't follow, the only one I was trying because it's mine. Maybe at some point I couldn't follow any account (at the time I could not be followed, check https://github.com/nextcloud/social/issues/1697 to know how I solved it) but I didn't try several account, I just tried mine and now, the problem is solved but because mine was "blocked" or something, I still can't follow mine...

I tried following my externa account from an other local account and I works. So only my local account can't follow my external account 'maybe due to past error)...

So the pbm sounds like solved to me. Maybe it was because of the same reason I could not be followed, that's the only thing I have changed but because I was focusing only on following my remote account from my local account, (which is not working) , i didn't realized I could actually follow all other external account. What I changed was, in nginx : location = /.well-known/webfinger { return 301 /nuage-nextcloud/index.php$uri; } to location = /.well-known/webfinger { return 301 /nuage-nextcloud/index.php$request_uri; }

Thatoo commented 7 months ago

Well, I even could solve the last issue, I mean follow my remote account with my local account doing first the following occ command

occ social:account:following --unfollow <userIdOfLocalAccound> <RemoteAccount>