mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-01 11:40:25 +00:00
kickstarter check on userobj
This commit is contained in:
parent
ef980102ba
commit
ff3eadb1f6
1 changed files with 3 additions and 4 deletions
|
|
@ -53,13 +53,12 @@ get '/', (page, model, next) ->
|
|||
userObj[path] = _.filter(unique, (val) -> _.contains(taskIds, val))
|
||||
|
||||
# ========== Notifiations ==========
|
||||
unless userObj.notifications.kickstarter
|
||||
unless userObj.notifications?.kickstarter
|
||||
userObj.notifications = userObj.notifications || {}
|
||||
userObj.notifications.kickstarter = 'show'
|
||||
|
||||
model.set "users.#{userObj.id}", userObj unless _.isEqual(user.get('userObj'), userObj)
|
||||
model.set '_view', _view
|
||||
|
||||
model.set "users.#{userObj.id}", userObj
|
||||
|
||||
model.ref '_user', user
|
||||
|
||||
# Setup Task Lists
|
||||
|
|
|
|||
Loading…
Reference in a new issue