From e0a192d748812d69a111d7c810645a8b4cc56bcb Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Sun, 13 Nov 2022 04:49:49 +0100 Subject: [PATCH] Forcing Telegram previews out of sight on the new previews. --- templates/layouts/default.html.ep | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index 046646e..7fdf7b9 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -8,7 +8,8 @@ % my $ogimage = stash 'ogimage'; -% if (defined $ogimage) { +% my $user_agent = stash 'useragent'; +% if (defined $ogimage && $user_agent !~ /TelegramBot/) { % } else {