Merge branch 'testing-patch-90de' into 'testing'

Don't break existing query arguments

See merge request piotrex43/RcGcDw!118
This commit is contained in:
MarkusRost 2023-02-19 15:26:46 +00:00
commit 8dd1469f6d

View file

@ -163,7 +163,8 @@ def embed_upload_upload(ctx, change) -> DiscordMessage:
for num, revision in enumerate(urls): for num, revision in enumerate(urls):
if revision["timestamp"] == change["logparams"][ if revision["timestamp"] == change["logparams"][
"img_timestamp"]: # find the correct revision corresponding for this log entry "img_timestamp"]: # find the correct revision corresponding for this log entry
image_direct_url = "{rev}?{cache}".format(rev=revision["url"], image_direct_url = "{rev}{c}rcgcdw={cache}".format(rev=revision["url"],
c="&" if "?" in revision["url"] else "?",
cache=int(time.time() * 5)) # cachebusting cache=int(time.time() * 5)) # cachebusting
break break
except KeyError: except KeyError: