X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fp.php;h=92b72dc1cec8c19fa4a467a0f9fb19226056f825;hb=27905cc21a523d052a0148c9802a64d6dfd9d0d2;hp=5c4b619840480bc05a350926a6e09ba9445a346d;hpb=f918109351cf5fe4103574b3799282c56ec11606;p=friendica.git 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'));