]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: Posts weren't always shown for feeds that start with "www."
authorMichael Vogel <icarus@dabo.de>
Thu, 10 Dec 2015 21:47:58 +0000 (22:47 +0100)
committerMichael Vogel <icarus@dabo.de>
Thu, 10 Dec 2015 21:47:58 +0000 (22:47 +0100)
mod/contacts.php

index cff68abc65facc03a799495c024c3a3f5cc96060..0a8aad9d722137493003a0b3cded94f5b450a473 100644 (file)
@@ -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'])