diff options
author | Zach Prezkuta <fermion@gmx.com> | 2012-06-23 12:40:53 -0600 |
---|---|---|
committer | Zach Prezkuta <fermion@gmx.com> | 2012-06-25 19:03:03 -0600 |
commit | 28526dbf2179619582bec5ab456b49f6ce3e8bd3 (patch) | |
tree | 8f4234dc36a2776a0b6a3dc59b9905d8debd43b9 /mod/item.php | |
parent | 9e8573507e311d139ac7c83dff496d85408d9b8d (diff) | |
download | volse-hubzilla-28526dbf2179619582bec5ab456b49f6ce3e8bd3.tar.gz volse-hubzilla-28526dbf2179619582bec5ab456b49f6ce3e8bd3.tar.bz2 volse-hubzilla-28526dbf2179619582bec5ab456b49f6ce3e8bd3.zip |
remove possibly unnecessary checks for likes or comments created by Diaspora users
Diffstat (limited to 'mod/item.php')
-rw-r--r-- | mod/item.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mod/item.php b/mod/item.php index 000f46644..aa022d37d 100644 --- a/mod/item.php +++ b/mod/item.php @@ -1040,15 +1040,15 @@ function store_diaspora_comment_sig($datarray, $author, $uprvkey, $parent_item, $signed_body = html_entity_decode(bb2diaspora($datarray['body'])); // $myaddr = $user['nickname'] . '@' . substr($baseurl, strpos($baseurl,'://') + 3); - if( $author['network'] === NETWORK_DIASPORA) - $diaspora_handle = $author['addr']; - else { - // Only works for NETWORK_DFRN - $contact_baseurl_start = strpos($author['url'],'://') + 3; - $contact_baseurl_length = strpos($author['url'],'/profile') - $contact_baseurl_start; - $contact_baseurl = substr($author['url'], $contact_baseurl_start, $contact_baseurl_length); - $diaspora_handle = $author['nick'] . '@' . $contact_baseurl; - } +// if( $author['network'] === NETWORK_DIASPORA) +// $diaspora_handle = $author['addr']; +// else { + // Only works for NETWORK_DFRN + $contact_baseurl_start = strpos($author['url'],'://') + 3; + $contact_baseurl_length = strpos($author['url'],'/profile') - $contact_baseurl_start; + $contact_baseurl = substr($author['url'], $contact_baseurl_start, $contact_baseurl_length); + $diaspora_handle = $author['nick'] . '@' . $contact_baseurl; +// } $signed_text = $datarray['guid'] . ';' . $parent_item['guid'] . ';' . $signed_body . ';' . $diaspora_handle; |