Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 2bca3dc38df05e1e17d69c24285333285083b603 1 parent 1ce168e
@timheap authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  phileo/templatetags/phileo_tags.py
View
1  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,
Please sign in to comment.
Something went wrong with that request. Please try again.