summaryrefslogtreecommitdiff
path: root/internal/api
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-02-29 14:20:57 +0000
committerLibravatar GitHub <noreply@github.com>2024-02-29 15:20:57 +0100
commitfcecd0c952d6aa286ab326c4fecd06a42de06977 (patch)
treee99e31ec5df4115ad376a2c7291d56d0fea4e863 /internal/api
parent[chore] Disable the syslog long message over Unix datagram socket test on mac... (diff)
downloadgotosocial-fcecd0c952d6aa286ab326c4fecd06a42de06977.tar.xz
[bugfix] unwrap boosts when checking in-reply-to status (#2702)
* add stronger checks on status being replied to * update error code test is expecting
Diffstat (limited to 'internal/api')
-rw-r--r--internal/api/client/statuses/statuscreate_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/api/client/statuses/statuscreate_test.go b/internal/api/client/statuses/statuscreate_test.go
index d936cb656..881943450 100644
--- a/internal/api/client/statuses/statuscreate_test.go
+++ b/internal/api/client/statuses/statuscreate_test.go
@@ -284,13 +284,13 @@ func (suite *StatusCreateTestSuite) TestReplyToNonexistentStatus() {
// check response
- suite.EqualValues(http.StatusBadRequest, recorder.Code)
+ suite.EqualValues(http.StatusNotFound, recorder.Code)
result := recorder.Result()
defer result.Body.Close()
b, err := ioutil.ReadAll(result.Body)
suite.NoError(err)
- suite.Equal(`{"error":"Bad Request: cannot reply to status that does not exist"}`, string(b))
+ suite.Equal(`{"error":"Not Found: target status not found"}`, string(b))
}
// Post a reply to the status of a local user that allows replies.