diff options
author | Julien Veyssier <eneiluj@posteo.net> | 2021-10-22 17:39:13 +0300 |
---|---|---|
committer | Julien Veyssier <eneiluj@posteo.net> | 2022-01-03 12:27:34 +0300 |
commit | 849b4f050569297ebbd8f9630f569dcb86fcbe60 (patch) | |
tree | 1b75f6259eba68d6ce327692e7a8393d1eb249e3 /src/nodes/ImageView.vue | |
parent | 7267f0b71d931ee9c464c1607cf9f5ed7a1a7e87 (diff) |
identify image by name instead of id in text file content
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
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 07a27ea7e..e90e01f3c 100644 --- a/src/nodes/ImageView.vue +++ b/src/nodes/ImageView.vue @@ -116,19 +116,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/image/public?textFileId={textFileId}&imageFileId={imageFileId}', + return generateUrl('/apps/text/image/public?textFileId={textFileId}&imageFileName={imageFileName}', { textFileId, - imageFileId, + imageFileName, }) } } |