Add link text to printf

Adds link text for the following
FILE_FORMAT='<a href="%s" />%s</a>'
This commit is contained in:
jpgichw 2023-10-05 16:43:22 +00:00 committed by GitHub
parent 6b3b14d3d3
commit c80a5be287
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -231,7 +231,7 @@ message_slots_to_selection() {
WHEN (file_transfer.path LIKE '%.jpg') OR (file_transfer.path LIKE '%.jpeg') OR (file_transfer.path LIKE '%.jpeg') WHEN (file_transfer.path LIKE '%.jpg') OR (file_transfer.path LIKE '%.jpeg') OR (file_transfer.path LIKE '%.jpeg')
OR (file_transfer.path LIKE '%.png') OR (file_transfer.path LIKE '%.webm') OR (file_transfer.path LIKE '%.svg') OR (file_transfer.path LIKE '%.png') OR (file_transfer.path LIKE '%.webm') OR (file_transfer.path LIKE '%.svg')
THEN PRINTF('$IMAGE_FORMAT', 'files/' || path) THEN PRINTF('$IMAGE_FORMAT', 'files/' || path)
ELSE PRINTF('$FILE_FORMAT', 'files/' || path) ELSE PRINTF('$FILE_FORMAT', 'files/' || path, 'files/' || path)
END END
FROM file_transfer FROM file_transfer
WHERE file_transfer.info == message.id ) WHERE file_transfer.info == message.id )