From 46f97a2d968ff5b438127394a23a69ec4ca81cc2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 3 Jul 2023 21:48:02 +0300 Subject: fix for 0.18.rc containing stuff other than /post/ link in article link element --- init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init.php') diff --git a/init.php b/init.php index acc5caa..9b8fb90 100644 --- a/init.php +++ b/init.php @@ -269,7 +269,7 @@ class Af_Lemmy extends Plugin { $origin_domain = parse_url($article["feed"]["site_url"] ?? '', PHP_URL_HOST); if ((strpos($origin_domain, "lemmy.") !== FALSE || in_array($origin_domain, $this->lemmy_domains)) && - preg_match("/\/post\/[0-9]{1,}$/", $article['link']) && !empty($article["content"])) { + preg_match("/\/post\/[0-9]{1,}$/", $article['guid']) && !empty($article["content"])) { $doc = new DOMDocument(); -- cgit v1.2.3