summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-07-03 21:48:02 +0300
committerAndrew Dolgov <[email protected]>2023-07-03 21:48:02 +0300
commit46f97a2d968ff5b438127394a23a69ec4ca81cc2 (patch)
tree4d5d8f363cfb6696595bbdc100915fa3a3e0dc3b
parent068a9401c33a78c3206a07c7a0ab9ceaf3998004 (diff)
fix for 0.18.rc containing stuff other than /post/ link in article link element
-rw-r--r--init.php2
1 files changed, 1 insertions, 1 deletions
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();