use known application as shorter

This commit is contained in:
tobi 2025-03-17 14:30:29 +01:00
commit c96ec969de
2 changed files with 2 additions and 2 deletions

View file

@ -1434,7 +1434,7 @@ func (c *Converter) baseStatusToFrontend(
// anymore, it's probably been cleaned up.
// Set a dummy application.
apiStatus.Application = &apimodel.Application{
Name: "Unknown/deleted application",
Name: "unknown application",
}
default:

View file

@ -792,7 +792,7 @@ func (suite *InternalToFrontendTestSuite) TestStatusToFrontendApplicationDeleted
"content": "\u003cp\u003ehello world! \u003ca href=\"http://localhost:8080/tags/welcome\" class=\"mention hashtag\" rel=\"tag nofollow noreferrer noopener\" target=\"_blank\"\u003e#\u003cspan\u003ewelcome\u003c/span\u003e\u003c/a\u003e ! first post on the instance :rainbow: !\u003c/p\u003e",
"reblog": null,
"application": {
"name": "Unknown/deleted application"
"name": "unknown application"
},
"account": {
"id": "01F8MH17FWEB39HZJ76B6VXSKF",