Commit Graph

206 Commits (bfea9d39064353d73a4be2344ca34fba03af1e34)

Author SHA1 Message Date
Barış Soner Uşaklı 38322ec308 fix: , delete old user notifs
Barış Soner Uşaklı a51ec591ee feat: , finish user module
Barış Soner Uşaklı 6f738c2b44 feat: notifications
Barış Soner Uşaklı b24ce97602 feat: , user/approval, user/auth
Barış Soner Uşaklı 198d05875f feat: cleanup, use bulk
Barış Soner Uşaklı ede060a646 feat: add hook for user notifications, closes
Julian Lam b32da57faf
fix: shortened CTA text and added custom text for some notifs ()
* fix:  shortened CTA text and added custom text for some notifs

Specifically, new-reply and new-chat have different CTA text as they
do not go to the forum home like other email templates send users to.

* fix: minor optimization as suggested by @barisusakli
Barış Soner Uşaklı 6e69a9ab31 fix: merge post notifs
Peter Jaszkowiak e1ca2d81f9 refactor: use loash when possible ()
Baris Usakli f4ea2c43ab feat:
Baris Usakli 96c1dc6276 unescape email subject
oh d7c55bc3f7 feat(email): don't escape html in notification bodies. ()
allows for post replies, etc. to show the formatting of the orginal 
post, rather than looking garbled.

closes 
Barış Soner Uşaklı 69bb3293ee misc fixes
handle spider uids properly
Barış Soner Uşaklı b2b33ffa57 topics data refactor
Barış Soner Uşaklı 26d4e0852f use includes instead of indexOf
use _.uniq instead of filter&indexOf
Barış Soner Uşaklı 0519f84734
Promisify modules ()
* WIP promisify

* promisify psql

* ability to skip some keys

* dont promisify client object

* remove async

* clone entire module so it has all properties

* add shim for node 6

* ignore sessionStore as well

* ignore pool on psql
Barış Soner Uşaklı 7a1888dfbf closes
Julian Lam 3951bb9532 Merge remote-tracking branch 'origin/master' into user-blocking
Barış Soner Uşaklı 6659a520e0 closes
Julian Lam a367b698e3 a bit more integration for
Andrew Rodrigues 9e0189ab34
added notification obj to emailer.send
Andrew Rodrigues a5bae451f2
strip html tags from email subject
Barış Soner Uşaklı 2661a31227 closes
Barış Soner Uşaklı c839d1cbc0 closes closes
Barış Soner Uşaklı dd176dd5f2
Notification delivery ()
* ability for users to choose how they receive notifications

add type field to more notifications, the type field is used to
determine what to do based on user
setting(none,notification,email,notificationemail)

* change var name to types

* cleanup

* add event types for privileged users

* remove unused language keys

* fix uids check

* changed if statements

* upgrade script to preserver old settings
Peter Jaszkowiak e609e497b3 Provide more error information to logs
Provides full stack instead of just message
Peter Jaszkowiak 46fafb20b9 Remove string.js dependency
Barış Soner Uşaklı 5dfb2fb83a up themes, fix notif test
Julian Lam c1d7b06ded Fixes
- Notifications.getMultiple now takes an optional uid parameter
- If a notification link in dropdown points to a topic and you're
  in said topic, you will be scrolled to the post instead of
  ajaxified to it.
Barış Soner Uşaklı c36f25f761 switch .filter to uniq
Baris Usakli 8ea5c060f5 closes
Peter Jaszkowiak 3c2d4fe649 Switch from underscore to lodash
Barış Soner Uşaklı bcc566fb68 remove unnecessary checks
Barış Soner Uşaklı f1b8492164 remove unnecessary checks
Barış Soner Uşaklı 9af252b899 notifications tests
Barış Soner Uşaklı 8920523e06 more tests
Peter Jaszkowiak 5ccb488b02 Fix indents
Peter Jaszkowiak 932ae4e86d Merge branch 'master' into notif-abort
Barış Soner Uşaklı b18b0db5be notifications.js style
Peter Jaszkowiak 19d6386237 Also abort if no uids to push to
Peter Jaszkowiak 3350a89791 Allow aborting notification push
Julian Lam d18cfced96 Merge remote-tracking branch 'origin/master' into develop
Peter Jaszkowiak 1ed571189c Make utils and translator easier to require
Move utils.walk to file.walk, backwards compatible
barisusakli 5a2ff8ed0a closes
Julian Lam 72e77772db Merge branch 'master' into develop
Peter Jaszkowiak 4bb49a7171 ESlint no-unused-vars
Peter Jaszkowiak 896c8c7343 ESlint object-curly-spacing
Peter Jaszkowiak 1493afee2a ESlint indent
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks
Peter Jaszkowiak 604358ecc4 ESlint keyword-spacing, no-multi-spaces