summaryrefslogtreecommitdiff
path: root/internal/api
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-10-04 19:22:52 +0200
committerLibravatar GitHub <noreply@github.com>2024-10-04 19:22:52 +0200
commit8bd8c6fb455d90c1ad0fe84430b7ea59bd1075f3 (patch)
tree60568db8f016e82ebad8acaa6b68938b31740331 /internal/api
parent[performance] remove the pragma optimize analysis limit on connection close (... (diff)
downloadgotosocial-8bd8c6fb455d90c1ad0fe84430b7ea59bd1075f3.tar.xz
[bugfix] Include own account in conversation when no other accounts involved (#3387)
Diffstat (limited to 'internal/api')
-rw-r--r--internal/api/model/conversation.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/api/model/conversation.go b/internal/api/model/conversation.go
index ba961cecb..41ac7d6ba 100644
--- a/internal/api/model/conversation.go
+++ b/internal/api/model/conversation.go
@@ -27,6 +27,10 @@ type Conversation struct {
// Is the conversation currently marked as unread?
Unread bool `json:"unread"`
// Participants in the conversation.
+ //
+ // If this is a conversation between no accounts (ie., a self-directed DM),
+ // this will include only the requesting account itself. Otherwise, it will
+ // include every other account in the conversation *except* the requester.
Accounts []Account `json:"accounts"`
// The last status in the conversation. May be `null`.
LastStatus *Status `json:"last_status"`