Forcing Telegram previews out of sight on the new previews.

This commit is contained in:
sergiotarxz 2022-11-13 04:49:49 +01:00
parent 008f06410b
commit e0a192d748
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,8 @@
<meta property="og:title" content="<%= title %>"/>
<meta property="og:site_name" content="Burguillos.info" />
% my $ogimage = stash 'ogimage';
% if (defined $ogimage) {
% my $user_agent = stash 'useragent';
% if (defined $ogimage && $user_agent !~ /TelegramBot/) {
<meta name="image" property="og:image" content="<%= $ogimage %>"/>
% } else {
<meta name="image" property="og:image" content="https://burguillos.info/img/burguillos.png">