From 300007a0cff41a25117d31c3707e65cb512fdaba Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Thu, 10 Dec 2015 22:47:58 +0100 Subject: [PATCH] Bugfix: Posts weren't always shown for feeds that start with "www." --- mod/contacts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/contacts.php b/mod/contacts.php index cff68abc65..0a8aad9d72 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -903,7 +903,7 @@ function contact_posts($a, $contact_id) { $r = q("SELECT COUNT(*) AS `total` FROM `item` WHERE `item`.`uid` = %d AND `author-link` IN ('%s', '%s')", intval(local_user()), - dbesc(normalise_link($contact["url"])), + dbesc(str_replace("https://", "http://", $contact["url"])), dbesc(str_replace("http://", "https://", $contact["url"]))); $a->set_pager_total($r[0]['total']); @@ -918,7 +918,7 @@ function contact_posts($a, $contact_id) { ORDER BY `item`.`created` DESC LIMIT %d, %d", intval(local_user()), intval($contact_id), - dbesc(normalise_link($contact["url"])), + dbesc(str_replace("https://", "http://", $contact["url"])), dbesc(str_replace("http://", "https://", $contact["url"])), intval($a->pager['start']), intval($a->pager['itemspage']) -- 2.39.5