aboutsummaryrefslogtreecommitdiff
path: root/mod/likes/views/default
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-06-03 01:24:14 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-06-03 01:24:14 +0000
commit33f7cec924ff46d5f890130393fe023d2ddd6100 (patch)
tree6831afc64cd0d072153736ebb952619205017633 /mod/likes/views/default
parent1838b57e20dfc70c04767d1729a66a4e2ab72c4c (diff)
downloadelgg-33f7cec924ff46d5f890130393fe023d2ddd6100.tar.gz
elgg-33f7cec924ff46d5f890130393fe023d2ddd6100.tar.bz2
Fixes #3497 users can unlike other users content
git-svn-id: http://code.elgg.org/elgg/trunk@9132 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/likes/views/default')
-rw-r--r--mod/likes/views/default/likes/display.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/mod/likes/views/default/likes/display.php b/mod/likes/views/default/likes/display.php
index cbfe46078..2dc50ddd0 100644
--- a/mod/likes/views/default/likes/display.php
+++ b/mod/likes/views/default/likes/display.php
@@ -28,8 +28,7 @@ if (elgg_is_logged_in() && $vars['entity']->canAnnotate(0, 'likes')) {
'annotation_name' => 'likes',
'owner_guid' => elgg_get_logged_in_user_guid()
);
- $likes = elgg_get_annotations($options);
- $url = elgg_get_site_url() . "action/likes/delete?annotation_id={$likes[0]->id}";
+ $url = elgg_get_site_url() . "action/likes/delete?guid={$guid}";
$params = array(
'href' => $url,
'text' => elgg_view_icon('thumbs-up-alt'),