The user profile follow button always shows "Follow", never "Unfollow" #12653

Closed
opened 2025-11-02 10:17:14 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @yardenshoham on GitHub (Mar 15, 2024).

Description

To determine the string, the template looks at $.IsFollowing. See:
6692894637/templates/shared/user/profile_big_avatar.tmpl (L120)

Since https://github.com/go-gitea/gitea/pull/29248, the IsFollowing parameter is never set as the line that set it was deleted. The relevant diff

Gitea Version

Current main

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

demo

Git Version

No response

Operating System

No response

How are you running Gitea?

It doesn't matter

Database

SQLite

Originally created by @yardenshoham on GitHub (Mar 15, 2024). ### Description To determine the string, the template looks at `$.IsFollowing`. See: https://github.com/go-gitea/gitea/blob/66928946372c85cd41d404f63e3c1da1bdeca3ca/templates/shared/user/profile_big_avatar.tmpl#L120 Since https://github.com/go-gitea/gitea/pull/29248, the `IsFollowing` parameter is never set as the line that set it was deleted. [The relevant diff](https://github.com/go-gitea/gitea/pull/29248/files#diff-2b0b591787f16325539485e648a09ab6d3177f47dc129cfe84a35ffe141dfd19L39) ### Gitea Version Current main ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots ![demo](https://github.com/go-gitea/gitea/assets/20454870/909df6e1-5aad-4726-acec-cd3ef558f566) ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? It doesn't matter ### Database SQLite
GiteaMirror added the issue/regressionskip-changelogtype/bug labels 2025-11-02 10:17:14 -06:00
Author
Owner

@yardenshoham commented on GitHub (Mar 15, 2024):

CC @zokkis

@yardenshoham commented on GitHub (Mar 15, 2024): CC @zokkis
Author
Owner

@silverwind commented on GitHub (Mar 15, 2024):

Definitely need to fix this before 1.22.

@silverwind commented on GitHub (Mar 15, 2024): Definitely need to fix this before 1.22.
Author
Owner

@lng2020 commented on GitHub (Mar 17, 2024):

It also breaks the user description on the profile page.
That PR is mainly focused on organization and accidentally deleted some code in the function PrepareContextForProfileBigAvatar that the user profile page also used.
So I guess just added those codes back in the function PrepareContextForProfileBigAvatar?

@lng2020 commented on GitHub (Mar 17, 2024): It also breaks the user description on the profile page. That PR is mainly focused on organization and accidentally deleted some code in the function `PrepareContextForProfileBigAvatar` that the user profile page also used. So I guess just added those codes back in the function `PrepareContextForProfileBigAvatar`?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12653