fix(user): answer the follow of a bot user with the profile card (#39980) (#40086)

Backport https://github.com/go-gitea/gitea/pull/39980

Following a bot user from its profile succeeded but answered with an
error, because the follow handler only rendered a response for
individuals and organizations.

The cherry-pick conflicted in `OwnerProfile`, which still serves the
user feeds on `release/v28`.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
authored and GitHub committed 2026-10-30 07:30:13 +00:00
1 parent 0964106988
commit 9ad9f99060
8 files changed
+67 -22

No files matched your search

+1 -1
View File
@@ -357,7 +357,7 @@ func TestIssueReaction(t *testing.T) {
req := NewRequestWithValues(t, "POST", path.Join(issueURL, "/reactions/react"), map[string]string{
"content": "8ball",
})
session.MakeRequest(t, req, http.StatusInternalServerError)
session.MakeRequest(t, req, http.StatusForbidden)
req = NewRequestWithValues(t, "POST", path.Join(issueURL, "/reactions/react"), map[string]string{
"content": "eyes",
})