mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-26 10:40:26 +08:00
🐛 Fix(custom): fix gallery copy bug of aws-s3
This commit is contained in:
@@ -140,6 +140,9 @@ async function copyTheLink (item: ImgInfo) {
|
||||
|
||||
async function pasteTemplate (style: IPasteStyle, item: ImgInfo, customLink: string | undefined) {
|
||||
let url = item.url || item.imgUrl
|
||||
if (item.type === 'aws-s3' || item.type === 'aws-s3-plist') {
|
||||
url = item.imgUrl || item.url || ''
|
||||
}
|
||||
if ((await getConfig('settings.encodeOutputURL')) === true) {
|
||||
url = handleUrlEncode(url)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user