diff options
Diffstat (limited to 'internal/typeutils')
| -rw-r--r-- | internal/typeutils/internaltoas.go | 8 | ||||
| -rw-r--r-- | internal/typeutils/internaltoas_test.go | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/internal/typeutils/internaltoas.go b/internal/typeutils/internaltoas.go index 6255ee8e2..d08c3c935 100644 --- a/internal/typeutils/internaltoas.go +++ b/internal/typeutils/internaltoas.go @@ -1145,8 +1145,12 @@ func (c *Converter) attachAttachments( } ap.AppendURL(attachmentable, imageURL) - // `summary` ie., media description / alt text - ap.AppendSummary(attachmentable, a.Description) + // `name` ie., media description / alt text + // + // TODO: Change this to `summary` when there's + // wider support for this across fedi. See: + // https://codeberg.org/superseriousbusiness/gotosocial/issues/4524 + ap.AppendName(attachmentable, a.Description) // `blurhash` ap.SetBlurhash(attachmentable, a.Blurhash) diff --git a/internal/typeutils/internaltoas_test.go b/internal/typeutils/internaltoas_test.go index 970e16cfa..943910f00 100644 --- a/internal/typeutils/internaltoas_test.go +++ b/internal/typeutils/internaltoas_test.go @@ -656,7 +656,7 @@ func (suite *InternalToASTestSuite) TestStatusWithTagsToASWithIDs() { 0.5 ], "mediaType": "image/jpeg", - "summary": "Black and white image of some 50's style text saying: Welcome On Board", + "name": "Black and white image of some 50's style text saying: Welcome On Board", "type": "Image", "url": "http://localhost:8080/fileserver/01F8MH17FWEB39HZJ76B6VXSKF/attachment/original/01F8MH6NEM8D7527KZAECTCR76.jpg" } @@ -776,7 +776,7 @@ func (suite *InternalToASTestSuite) TestStatusWithTagsToASFromDB() { 0.5 ], "mediaType": "image/jpeg", - "summary": "Black and white image of some 50's style text saying: Welcome On Board", + "name": "Black and white image of some 50's style text saying: Welcome On Board", "type": "Image", "url": "http://localhost:8080/fileserver/01F8MH17FWEB39HZJ76B6VXSKF/attachment/original/01F8MH6NEM8D7527KZAECTCR76.jpg" } |
