diff options
author | Friendika <info@friendika.com> | 2011-10-05 19:16:05 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-10-05 19:16:05 -0700 |
commit | 7d6a67f9032295dc677e2aa6c0648938a3cf3199 (patch) | |
tree | 228832377147dbcadb5f5a8c361e9cb68dcafeb4 /include | |
parent | 7df6cb850efd323e03ea329957273f7d1e3c0323 (diff) | |
download | volse-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 'include')
-rw-r--r-- | include/conversation.php | 2 | ||||
-rw-r--r-- | include/diaspora.php | 7 | ||||
-rw-r--r-- | include/notifier.php | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/include/conversation.php b/include/conversation.php index 10b34ebe6..18f6d080b 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -540,7 +540,7 @@ function conversation(&$a, $items, $mode, $update) { '$osparkle' => $osparkle, '$sparkle' => $sparkle, '$title' => template_escape($item['title']), - '$ago' => ((($item['app']) && ($item['id'] == $item['parent'])) ? sprintf( t('%s from %s'),relative_date($item['created']),$item['app']) : relative_date($item['created'])), + '$ago' => (($item['app']) ? sprintf( t('%s from %s'),relative_date($item['created']),$item['app']) : relative_date($item['created'])), '$lock' => $lock, '$location' => template_escape($location), '$indent' => $indent, diff --git a/include/diaspora.php b/include/diaspora.php index 1ae8ca800..33b8336f3 100644 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -613,7 +613,6 @@ function diaspora_comment($importer,$xml,$msg) { return; } - if($parent_author_signature) { $owner_signed_data = $guid . ';' . $parent_guid . ';' . $text . ';' . $diaspora_handle; @@ -646,9 +645,9 @@ function diaspora_comment($importer,$xml,$msg) { $datarray['created'] = $datarray['edited'] = datetime_convert(); $datarray['private'] = $parent_item['private']; - $datarray['owner-name'] = $contact['name']; - $datarray['owner-link'] = $contact['url']; - $datarray['owner-avatar'] = $contact['thumb']; + $datarray['owner-name'] = $parent_item['owner-name']; + $datarray['owner-link'] = $parent_item['owner-link']; + $datarray['owner-avatar'] = $parent_item['owner-avatar']; $datarray['author-name'] = $person['name']; $datarray['author-link'] = $person['url']; diff --git a/include/notifier.php b/include/notifier.php index c3f7f33ea..18a0fe584 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -183,6 +183,7 @@ function notifier_run($argv, $argc){ // We will only send a "notify owner to relay" or followup message if the referenced post // originated on our system by virtue of having our hostname somewhere // in the URI, AND it was a comment (not top_level) AND the parent originated elsewhere. + // if $parent['wall'] == 1 we will already have the parent message in our array // and we will relay the whole lot. @@ -357,6 +358,7 @@ function notifier_run($argv, $argc){ continue; $contact = get_item_contact($item,$contacts); + if(! $contact) continue; |