From 61b8b2ba39be8cb9bc7b0770485d0b6ec1d5c616 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 31 Jan 2022 12:26:59 -0800 Subject: [PATCH] Include the map blob hash in the URL spammed on Matrix. Maybe this will make the preview always show the correct screenshot? --- misc/tools/xonotic-map-compiler-autobuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/tools/xonotic-map-compiler-autobuild b/misc/tools/xonotic-map-compiler-autobuild index a18bc6d7..0b5a1627 100755 --- a/misc/tools/xonotic-map-compiler-autobuild +++ b/misc/tools/xonotic-map-compiler-autobuild @@ -272,10 +272,10 @@ screenshotthemap() ) 2>&1 | tee ~/.xonotic/data/autoscreenshot.log good=false if mv ~/.xonotic/data/screenshots "$M-$blobhash"; then - ss2spam "$M" "$url?d" "$REFNAME" "$commithash" 0 > ~/.xonotic/data/"$M.ircss" + ss2spam "$M" "$url/$M-$blobhash/" "$REFNAME" "$commithash" 0 > ~/.xonotic/data/"$M.ircss" else mkdir "$M-$blobhash" - ss2spam "$M" "$url?d" "$REFNAME" "$commithash" 1 > ~/.xonotic/data/"$M.ircss" + ss2spam "$M" "$url/$M-$blobhash/" "$REFNAME" "$commithash" 1 > ~/.xonotic/data/"$M.ircss" fi mv ~/.xonotic/data/"$M.ircss" "$M-$blobhash"/ mv ~/.xonotic/data/autoscreenshot.log "$M-$blobhash"/ -- 2.39.2