-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Description
I have disabled subscribe_notes, but I still get notifications of new notes. I think this is due to a Unicode-aware comparison.
>>> UserOption.objects.filter(key='subscribe_notes', value='0')
[]
>>> UserOption.objects.filter(key='subscribe_notes', value=u'0')
[<UserOption at 0x4505110: id=73, user_id=1, project_id=None, key=u'subscribe_notes', value=u'0'>, <UserOption at 0x4505190: id=137, user_id=2, project_id=None, key=u'subscribe_notes', value=u'0'>]
Activity.send_notification compares with '0', and thus never returns me as a user to exclude.
Python 2.7.3, Postgres 9.2.5
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels