Ported messaging to new store

This commit is contained in:
Denis Arh
2020-09-01 10:31:18 +02:00
parent 3833f25b89
commit e2c9b96ea9
35 changed files with 2598 additions and 207 deletions
+1 -1
View File
@@ -281,7 +281,7 @@ func Attachment(in *messagingTypes.Attachment, userID uint64) *outgoing.Attachme
return &outgoing.Attachment{
ID: Uint64toa(in.ID),
UserID: Uint64toa(in.UserID),
UserID: Uint64toa(in.OwnerID),
Url: fmt.Sprintf(attachmentURL, in.ID, url.PathEscape(in.Name)) + signParams,
PreviewUrl: preview + signParams,
Meta: in.Meta,