From 4c850f473152a1e9333d8f953c35377bc80d3aca Mon Sep 17 00:00:00 2001 From: Bobby Date: Wed, 10 Aug 2022 09:17:48 +0700 Subject: [PATCH] fix: default sharex config download url used to be always appended with ?v=undefined regardless of cacheControl option's value in config file this never came into attention usually, because the default url would only be presented to non-logged in users when the safe is private --- views/_globals.sample.njk | 2 +- views/_layout.njk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/views/_globals.sample.njk b/views/_globals.sample.njk index 7726615..14bad15 100644 --- a/views/_globals.sample.njk +++ b/views/_globals.sample.njk @@ -66,7 +66,7 @@ attrs: { id: 'ShareX', title: 'ShareX user profile', - href: 'https://safe.fiery.me/safe.fiery.me.sxcu?v=' + v2 + href: 'https://safe.fiery.me/safe.fiery.me.sxcu?v=' + (versions[2] or '') }, icon: 'icon-sharex icon-2x' }, diff --git a/views/_layout.njk b/views/_layout.njk index ad95107..93119d1 100644 --- a/views/_layout.njk +++ b/views/_layout.njk @@ -1,4 +1,4 @@ -{%- import '_globals.njk' as globals -%} +{%- import '_globals.njk' as globals with context -%} {# Set root domain here to inherit values from config file #} {%- set root = utils.conf.homeDomain or utils.conf.domain -%}