aboutsummaryrefslogtreecommitdiffstats
path: root/mod/ping.php
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2011-08-23 14:02:04 +0200
committerfabrixxm <fabrix.xm@gmail.com>2011-08-23 14:02:04 +0200
commit97806544bcd7ee3831ffc515062afe0812828b76 (patch)
treed0f02a9e265f08abf97f15764b9f3e76925be8c1 /mod/ping.php
parent89c5733ca566f6f6e5568b4a4f22e20d60d7442d (diff)
downloadvolse-hubzilla-97806544bcd7ee3831ffc515062afe0812828b76.tar.gz
volse-hubzilla-97806544bcd7ee3831ffc515062afe0812828b76.tar.bz2
volse-hubzilla-97806544bcd7ee3831ffc515062afe0812828b76.zip
don't add notification details on new posts
Diffstat (limited to 'mod/ping.php')
-rw-r--r--mod/ping.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/ping.php b/mod/ping.php
index f9d7cd8a7..8a3d284af 100644
--- a/mod/ping.php
+++ b/mod/ping.php
@@ -13,7 +13,7 @@ function ping_init(&$a) {
$dislikes = array();
$friends = array();
- $r = q("SELECT `item`.`parent`, `item`.`verb`, `item`.`author-name`,
+ $r = q("SELECT `item`.`id`,`item`.`parent`, `item`.`verb`, `item`.`author-name`,
`item`.`author-link`, `item`.`author-avatar`, `item`.`created`,
`pitem`.`author-name` as `pname`, `pitem`.`author-link` as `plink`
FROM `item` INNER JOIN `item` as `pitem` ON `pitem`.`id`=`item`.`parent`
@@ -35,12 +35,12 @@ function ping_init(&$a) {
$friends[] = $it;
break;
default:
- $comments[] = $it;
+ if ($it['parent']!=$it['id']) $comments[] = $it;
}
}
- $r = q("SELECT `item`.`parent`, `item`.`verb`, `item`.`author-name`,
+ $r = q("SELECT `item`.`id`,`item`.`parent`, `item`.`verb`, `item`.`author-name`,
`item`.`author-link`, `item`.`author-avatar`, `item`.`created`,
`pitem`.`author-name` as `pname`, `pitem`.`author-link` as `plink`
FROM `item` INNER JOIN `item` as `pitem` ON `pitem`.`id`=`item`.`parent`
@@ -61,7 +61,7 @@ function ping_init(&$a) {
$friends[] = $it;
break;
default:
- $comments[] = $it;
+ if ($it['parent']!=$it['id']) $comments[] = $it;
}
}