Merge pull request #2168 from annando/1512-contact-posts
Bugfix: Posts weren't always shown for feeds that start with "www."
This commit is contained in:
commit
f304ba74fb
|
@ -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'])
|
||||
|
|
Loading…
Reference in New Issue
Block a user