From 22833c760a948f813c03b40f7c78b1872bdc1e2d Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman <sheila@vulpine.house> Date: Fri, 28 Oct 2022 01:02:44 -0700 Subject: [PATCH] =?UTF-8?q?Chessa::URI::Default::get:=20roll=20back=20a=20?= =?UTF-8?q?check=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/Chessa/URI/Default.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/Chessa/URI/Default.pm b/scripts/Chessa/URI/Default.pm index f74fc85..c8f061b 100644 --- a/scripts/Chessa/URI/Default.pm +++ b/scripts/Chessa/URI/Default.pm @@ -142,8 +142,7 @@ sub get($self, $response, $uri, $on_info, $redirect, $errors) { TITLE: # Check meta elements for useful information (e.g. for Mastodon) # XXX: May need to do some extra sniffing here. - if ($t->exists('//meta[@property="twitter:card"]') || - $t->exists('//meta[@property="og:title]')) { + if ($t->exists('//meta[@property="twitter:card"]')) { $title = $self->tcard($t, $authority); } else { # This is not an AMP page and doesn't provide a twitter card. -- GitLab