fix(discord_images): fix discord images missing the attachment ID (#4696)

Fixes https://github.com/status-im/status-desktop/issues/13466
This commit is contained in:
Jonathan Rainville 2024-02-13 10:16:53 -05:00 committed by GitHub
parent 2bdc7ec0f4
commit 4fc9420efc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -275,6 +275,10 @@ func ParseImageParams(logger *zap.Logger, params url.Values) ImageParams {
parsed.AuthorID = authorIds[0]
}
if attachmentIDs := params["attachmentId"]; len(attachmentIDs) != 0 {
parsed.AttachmentID = attachmentIDs[0]
}
if imageIds := params["image-id"]; len(imageIds) != 0 {
parsed.ImageID = imageIds[0]
}