Permalink
Browse files

Include the user in the phileo_widget context

Anonymous user detection wasnt working correctly, as the user was not
always in the template context at render time. This resulted in the
'like' button just plain old not being shown in some circumstances,
which is incorrect. By explicitly including the user in the context,
this problem is solved
  • Loading branch information...
1 parent 1ce168e commit 2bca3dc38df05e1e17d69c24285333285083b603 Tim Heap committed Nov 29, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 phileo/templatetags/phileo_tags.py
@@ -98,6 +98,7 @@ def phileo_widget(user, obj, widget_id=None, like_type="like", toggle_class="phi
).exists()
return {
+ "user": user,
"like_url": like_url,
"widget_id": widget_id,
"like_type": like_type,

0 comments on commit 2bca3dc

Please sign in to comment.