mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-02 13:44:16 +09:00
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:
8 files changed
+67
-22
No files matched your search
@@ -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",
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user