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:
parent
2bdc7ec0f4
commit
4fc9420efc
|
@ -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]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue