diff options
Diffstat (limited to 'src/nodes/ImageView.vue')
-rw-r--r-- | src/nodes/ImageView.vue | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nodes/ImageView.vue b/src/nodes/ImageView.vue index df92bf71b..ce62fc7a1 100644 --- a/src/nodes/ImageView.vue +++ b/src/nodes/ImageView.vue @@ -118,19 +118,19 @@ export default { }, imageUrl() { if (this.src.startsWith('text://')) { - const imageFileId = getQueryVariable(this.src, 'imageFileId') + const imageFileName = getQueryVariable(this.src, 'imageFileName') const textFileId = getQueryVariable(this.src, 'textFileId') if (getCurrentUser()) { - return generateUrl('/apps/text/image?textFileId={textFileId}&imageFileId={imageFileId}', + return generateUrl('/apps/text/image?textFileId={textFileId}&imageFileName={imageFileName}', { textFileId, - imageFileId, + imageFileName, }) } else { - return generateUrl('/apps/text/public/image?textFileId={textFileId}&imageFileId={imageFileId}&shareToken={token}', + return generateUrl('/apps/text/public/image?textFileId={textFileId}&imageFileName={imageFileName}&shareToken={token}', { textFileId, - imageFileId, + imageFileName, token: this.token, }) } |