summaryrefslogtreecommitdiff
path: root/internal/api
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-04-18 13:22:55 +0200
committerLibravatar GitHub <noreply@github.com>2024-04-18 13:22:55 +0200
commitb7c629a18a3154b7cf8231ce6e4cbb47e8c32730 (patch)
treec1b01886d4a4bdbb8a4ca0fb5be7b2766b7091dd /internal/api
parent[feature] Stub conversations endpoint (#2853) (diff)
downloadgotosocial-b7c629a18a3154b7cf8231ce6e4cbb47e8c32730.tar.xz
[bugfix] Fix incorrect field name for status source, add helpful message (#2854)
* [bugfix] Fix incorrect field name for status source, add helpful message * swagger * yyammm
Diffstat (limited to 'internal/api')
-rw-r--r--internal/api/client/statuses/statussource_test.go2
-rw-r--r--internal/api/model/status.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/api/client/statuses/statussource_test.go b/internal/api/client/statuses/statussource_test.go
index edb2dad3c..28b1e6852 100644
--- a/internal/api/client/statuses/statussource_test.go
+++ b/internal/api/client/statuses/statussource_test.go
@@ -91,7 +91,7 @@ func (suite *StatusSourceTestSuite) TestGetSource() {
suite.Equal(`{
"id": "01F8MHAMCHF6Y650WCRSCP4WMY",
- "source": "hello everyone!",
+ "text": "**STATUS EDITS ARE NOT CURRENTLY SUPPORTED IN GOTOSOCIAL (coming in 2024)**\nYou can review the original text of your status below, but you will not be able to submit this edit.\n\n---\n\nhello everyone!",
"spoiler_text": "introduction post"
}`, dst.String())
}
diff --git a/internal/api/model/status.go b/internal/api/model/status.go
index d7d3266ed..9543303eb 100644
--- a/internal/api/model/status.go
+++ b/internal/api/model/status.go
@@ -259,7 +259,7 @@ type StatusSource struct {
// example: 01FBVD42CQ3ZEEVMW180SBX03B
ID string `json:"id"`
// Plain-text source of a status.
- Text string `json:"source"`
+ Text string `json:"text"`
// Plain-text version of spoiler text.
SpoilerText string `json:"spoiler_text"`
}