aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorZach Prezkuta <fermion@gmx.com>2012-06-02 23:56:42 -0600
committerZach Prezkuta <fermion@gmx.com>2012-06-03 14:53:30 -0600
commitcde0de965f8f2fde2b289ebcb1c1814ffa303ca6 (patch)
treedd002c200b34ac7dca92406ba2aa1915d9219624 /include/items.php
parent77962aa79df5671e206635cc6980e4b1ac969bf9 (diff)
downloadvolse-hubzilla-cde0de965f8f2fde2b289ebcb1c1814ffa303ca6.tar.gz
volse-hubzilla-cde0de965f8f2fde2b289ebcb1c1814ffa303ca6.tar.bz2
volse-hubzilla-cde0de965f8f2fde2b289ebcb1c1814ffa303ca6.zip
first shot at getting like/unlike functions to work consistently
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index 897036c26..6b16810b2 100644
--- a/include/items.php
+++ b/include/items.php
@@ -3281,9 +3281,11 @@ function drop_item($id,$interactive = true) {
}
// Add a relayable_retraction signature for Diaspora. Note that we can't add a target_author_signature
- // if the comment/like was deleted by a remote user. That should be ok, because if a remote user is deleting
- // the comment/like, that means we're the home of the post, and Diaspora will only
+ // if the comment was deleted by a remote user. That should be ok, because if a remote user is deleting
+ // the comment, that means we're the home of the post, and Diaspora will only
// check the parent_author_signature of retractions that it doesn't have to relay further
+ //
+ // I don't think this function gets called for an "unlike," but I'll check anyway
$signed_text = $item['guid'] . ';' . ( ($item['verb'] === ACTIVITY_LIKE) ? 'Like' : 'Comment');
if(local_user() == $item['uid']) {
@@ -3296,6 +3298,8 @@ function drop_item($id,$interactive = true) {
$item['contact-id']
);
if(count($r)) {
+ // The below handle only works for NETWORK_DFRN. I think that's ok, because this function
+ // only handles DFRN deletes
$handle = $r['nick'] . '@' . substr($r['url'], strpos($r['url'],'://') + 3, strpos($r['url'],'/profile') - 1);
$authorsig = '';
}