mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[bugfix] Serialize empty conversation account list as empty list, not null (#3137)
This commit is contained in:
@@ -1754,6 +1754,7 @@ func (c *Converter) ConversationToAPIConversation(
|
|||||||
apiConversation := &apimodel.Conversation{
|
apiConversation := &apimodel.Conversation{
|
||||||
ID: conversation.ID,
|
ID: conversation.ID,
|
||||||
Unread: !*conversation.Read,
|
Unread: !*conversation.Read,
|
||||||
|
Accounts: []apimodel.Account{},
|
||||||
}
|
}
|
||||||
for _, account := range conversation.OtherAccounts {
|
for _, account := range conversation.OtherAccounts {
|
||||||
var apiAccount *apimodel.Account
|
var apiAccount *apimodel.Account
|
||||||
|
Reference in New Issue
Block a user