From 435a29026df486db48ad0203ee47c11bb0ebe90a Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 27 Dec 2015 21:12:53 +0100 Subject: [PATCH] Diaspora: The /p/ only should return top level posts - not comments --- mod/p.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/p.php b/mod/p.php index 5c4b619840..92b72dc1ce 100644 --- a/mod/p.php +++ b/mod/p.php @@ -19,7 +19,7 @@ function p_init($a){ $guid = strtolower(substr($guid, 0, -4)); - $item = q("SELECT `title`, `body`, `guid`, `contact-id`, `private`, `created`, `app` FROM `item` WHERE `uid` = 0 AND `guid` = '%s' AND `network` IN ('%s', '%s') LIMIT 1", + $item = q("SELECT `title`, `body`, `guid`, `contact-id`, `private`, `created`, `app` FROM `item` WHERE `uid` = 0 AND `guid` = '%s' AND `network` IN ('%s', '%s') AND `id` = `parent` LIMIT 1", dbesc($guid), NETWORK_DFRN, NETWORK_DIASPORA); if (!$item) { header($_SERVER["SERVER_PROTOCOL"].' 404 '.t('Not Found')); -- 2.39.5