aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZach Prezkuta <fermion@gmx.com>2012-06-16 10:41:25 -0600
committerZach Prezkuta <fermion@gmx.com>2012-06-16 10:41:25 -0600
commit577cfdd314259ea490c1bef89ff847bbc8e168c2 (patch)
tree96d34a64b3e55947e8c61d134537951fc6a0e358
parent0946c4a375838072d8c54b348191004e1002416e (diff)
downloadvolse-hubzilla-577cfdd314259ea490c1bef89ff847bbc8e168c2.tar.gz
volse-hubzilla-577cfdd314259ea490c1bef89ff847bbc8e168c2.tar.bz2
volse-hubzilla-577cfdd314259ea490c1bef89ff847bbc8e168c2.zip
some cleanup of obsolete code
-rwxr-xr-xinclude/diaspora.php37
1 files changed, 6 insertions, 31 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index ecf1fd7a9..5be09a7ac 100755
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -1094,21 +1094,6 @@ function diaspora_comment($importer,$xml,$msg) {
// our post, so he/she must be a contact of ours and his/her public key
// should be in $msg['key']
-/* if(strcasecmp($diaspora_handle,$msg['author']) == 0) {
- $person = $contact;
- $key = $msg['key'];
- }
- else {
- $person = find_diaspora_person_by_handle($diaspora_handle);
-
- if(is_array($person) && x($person,'pubkey'))
- $key = $person['pubkey'];
- else {
- logger('diaspora_comment: unable to find author details');
- return;
- }
- }*/
-
$author_signature = base64_decode($author_signature);
if(! rsa_verify($signed_data,$author_signature,$key,'sha256')) {
@@ -1119,7 +1104,9 @@ function diaspora_comment($importer,$xml,$msg) {
// Phew! Everything checks out. Now create an item.
- // Find the original comment author information
+ // Find the original comment author information.
+ // We need this to make sure we display the comment author
+ // information (name and avatar) correctly.
if(strcasecmp($diaspora_handle,$msg['author']) == 0)
$person = $contact;
else {
@@ -1692,20 +1679,6 @@ function diaspora_like($importer,$xml,$msg) {
// our post, so he/she must be a contact of ours and his/her public key
// should be in $msg['key']
-/* if(strcasecmp($diaspora_handle,$msg['author']) == 0) {
- $person = $contact;
- $key = $msg['key'];
- }
- else {
- $person = find_diaspora_person_by_handle($diaspora_handle);
- if(is_array($person) && x($person,'pubkey'))
- $key = $person['pubkey'];
- else {
- logger('diaspora_like: unable to find author details');
- return;
- }
- }*/
-
$author_signature = base64_decode($author_signature);
if(! rsa_verify($signed_data,$author_signature,$key,'sha256')) {
@@ -1716,7 +1689,9 @@ function diaspora_like($importer,$xml,$msg) {
// Phew! Everything checks out. Now create an item.
- // Find the original like author information
+ // Find the original comment author information.
+ // We need this to make sure we display the comment author
+ // information (name and avatar) correctly.
if(strcasecmp($diaspora_handle,$msg['author']) == 0)
$person = $contact;
else {