diff options
author | Friendika <info@friendika.com> | 2011-08-29 00:51:08 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-08-29 00:51:08 -0700 |
commit | 391330d95f4b59aaca60ee7e954eaa9e7d2a20c0 (patch) | |
tree | 34bf38ce7a5369138f651d40a95f9508f586ff3b | |
parent | bfc708e07bde21b772f160aa9873d660f7995c2e (diff) | |
download | volse-hubzilla-391330d95f4b59aaca60ee7e954eaa9e7d2a20c0.tar.gz volse-hubzilla-391330d95f4b59aaca60ee7e954eaa9e7d2a20c0.tar.bz2 volse-hubzilla-391330d95f4b59aaca60ee7e954eaa9e7d2a20c0.zip |
better handling of relayed Diaspora comments
-rw-r--r-- | include/diaspora.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/diaspora.php b/include/diaspora.php index 99bc21c0b..5e751f4ba 100644 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -1065,9 +1065,11 @@ function diaspora_send_relay($item,$owner,$contact) { $text = html_entity_decode(bb2diaspora($body)); // fetch the original signature if somebody sent the post to us to relay - // If we are relaying for a reply originating here, there wasn't a 'send to relay' + // If we are relaying for a reply originating on our own account, there wasn't a 'send to relay' // action. It wasn't needed. In that case create the original signature and the // owner (parent author) signature + // comments from other networks will be relayed under our name, with a brief + // preamble to describe what's happening and noting the real author $r = q("select * from sign where iid = %d limit 1", intval($item['id']) @@ -1076,6 +1078,7 @@ function diaspora_send_relay($item,$owner,$contact) { $orig_sign = $r[0]; $signed_text = $orig_sign['signed_text']; $authorsig = $orig_sign['signature']; + $handle = $orig_sign['signer']; } else { @@ -1105,7 +1108,7 @@ function diaspora_send_relay($item,$owner,$contact) { dbesc(base64_encode($authorsig)), dbesc($myaddr) ); - + $handle = $myaddr; } } @@ -1121,7 +1124,7 @@ function diaspora_send_relay($item,$owner,$contact) { '$parentsig' => xmlify($parentauthorsig), '$body' => xmlify($text), '$positive' => xmlify($positive), - '$handle' => xmlify($myaddr) + '$handle' => xmlify($handle) )); logger('diaspora_relay_comment: base message: ' . $msg, LOGGER_DATA); |