Remove forJSON

This commit is contained in:
binwiederhier
2026-01-08 11:39:32 -05:00
parent 239959e2a4
commit dffee9ea7d
3 changed files with 9 additions and 15 deletions

View File

@@ -773,6 +773,10 @@ func readMessage(rows *sql.Rows) (*message, error) {
URL: attachmentURL,
}
}
// Clear SID if it equals ID (we do not want the SID in the message output)
if sid == id {
sid = ""
}
return &message{
ID: id,
SID: sid,