diff options
author | Andrew Dolgov <[email protected]> | 2023-07-03 21:48:02 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-07-03 21:48:02 +0300 |
commit | 46f97a2d968ff5b438127394a23a69ec4ca81cc2 (patch) | |
tree | 4d5d8f363cfb6696595bbdc100915fa3a3e0dc3b /init.php | |
parent | 068a9401c33a78c3206a07c7a0ab9ceaf3998004 (diff) |
fix for 0.18.rc containing stuff other than /post/ link in article link element
Diffstat (limited to 'init.php')
-rw-r--r-- | init.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |