From ecabb72e8e77462d087b8610124493454b796f4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Fri, 17 Nov 2023 16:35:23 +0100 Subject: [PATCH] Workaround terrible user agent sniffing from embed bug workaround services --- config/services/matrix-media-repo.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/services/matrix-media-repo.nix b/config/services/matrix-media-repo.nix index f19bbf16..037dd668 100644 --- a/config/services/matrix-media-repo.nix +++ b/config/services/matrix-media-repo.nix @@ -65,7 +65,8 @@ "fe80::/64" "fc00::/7" ]; - userAgent = "TelegramBot (like TwitterBot)"; # to make it work with fxtwitter/vxtwitter + # user agent header was a mistake + userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0, matrix-media-repo (like twitterbot; like telegrambot; like discordbot; like facebook; like whatsapp; like firefox/92; like vkshare) +https://github.com/DarkKirb/nixos-config/pull/264"; }; downloads = { expireAfterDays = 7;