aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dfrn_notify.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-05 19:16:05 -0700
committerFriendika <info@friendika.com>2011-10-05 19:16:05 -0700
commit7d6a67f9032295dc677e2aa6c0648938a3cf3199 (patch)
tree228832377147dbcadb5f5a8c361e9cb68dcafeb4 /mod/dfrn_notify.php
parent7df6cb850efd323e03ea329957273f7d1e3c0323 (diff)
downloadvolse-hubzilla-7d6a67f9032295dc677e2aa6c0648938a3cf3199.tar.gz
volse-hubzilla-7d6a67f9032295dc677e2aa6c0648938a3cf3199.tar.bz2
volse-hubzilla-7d6a67f9032295dc677e2aa6c0648938a3cf3199.zip
mostly cosmetic changes to make DB tables accurately reflect the conversation members
Diffstat (limited to 'mod/dfrn_notify.php')
-rw-r--r--mod/dfrn_notify.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php
index 53179eaf1..01bb9119e 100644
--- a/mod/dfrn_notify.php
+++ b/mod/dfrn_notify.php
@@ -454,9 +454,9 @@ function dfrn_notify_post(&$a) {
// was the top-level post for this reply written by somebody on this site?
// Specifically, the recipient?
- $r = q("select `item`.`id` from `item`
+ $r = q("select `item`.`id`, `contact`.`name`, `contact`.`url`, `contact`.`thumb` from `item`
LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
- WHERE `contact`.`self` = 1 AND `item`.`uri` = '%s' AND `item`.`uid` = %d LIMIT 1",
+ WHERE `contact`.`self` = 1 AND `item`.`wall` = 1 AND `item`.`uri` = '%s' AND `item`.`uid` = %d LIMIT 1",
dbesc($parent_uri),
intval($importer['importer_uid'])
);
@@ -470,6 +470,9 @@ function dfrn_notify_post(&$a) {
$datarray['wall'] = 1;
$datarray['parent-uri'] = $parent_uri;
$datarray['uid'] = $importer['importer_uid'];
+ $datarray['owner-name'] = $r[0]['name'];
+ $datarray['owner-link'] = $r[0]['url'];
+ $datarray['owner-avatar'] = $r[0]['thumb'];
$datarray['contact-id'] = $importer['id'];
if(($datarray['verb'] == ACTIVITY_LIKE) || ($datarray['verb'] == ACTIVITY_DISLIKE)) {
$is_like = true;