Commit Graph

192 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
26d4e0852f use includes instead of indexOf
use _.uniq instead of filter&indexOf
2018-10-20 14:40:48 -04:00
Barış Soner Uşaklı
0519f84734 Promisify modules (#6723)
* 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
2018-08-31 11:04:42 -04:00
Barış Soner Uşaklı
7a1888dfbf closes #6514 2018-05-30 16:29:44 -04:00
Julian Lam
3951bb9532 Merge remote-tracking branch 'origin/master' into user-blocking 2018-04-26 09:59:37 -04:00
Barış Soner Uşaklı
6659a520e0 closes #6465 2018-04-22 09:10:02 -04:00
Julian Lam
a367b698e3 a bit more integration for #6463 2018-04-20 13:49:23 -04:00
Andrew Rodrigues
9e0189ab34 added notification obj to emailer.send 2018-01-30 20:43:30 -05:00
Andrew Rodrigues
a5bae451f2 strip html tags from email subject 2018-01-30 19:53:38 -05:00
Barış Soner Uşaklı
2661a31227 closes #6202 2017-12-29 13:27:12 -05:00
Barış Soner Uşaklı
c839d1cbc0 closes #6080 closes #6078 2017-11-17 08:10:25 -05:00
Barış Soner Uşaklı
dd176dd5f2 Notification delivery (#6072)
* 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
2017-11-15 21:35:10 -05:00
Peter Jaszkowiak
e609e497b3 Provide more error information to logs
Provides full stack instead of just message
2017-11-01 18:59:48 -06:00
Peter Jaszkowiak
46fafb20b9 Remove string.js dependency 2017-10-13 21:02:41 -06:00
Barış Soner Uşaklı
5dfb2fb83a up themes, fix notif test 2017-08-18 19:00:48 -04:00
Julian Lam
c1d7b06ded Fixes #5873
- 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.
2017-08-18 16:30:54 -04:00
Barış Soner Uşaklı
c36f25f761 switch .filter to uniq 2017-06-25 19:05:13 -04:00
Baris Usakli
8ea5c060f5 closes #5754 2017-06-13 15:20:31 -04:00
Peter Jaszkowiak
3c2d4fe649 Switch from underscore to lodash 2017-05-27 14:51:45 -06:00
Barış Soner Uşaklı
bcc566fb68 remove unnecessary checks 2017-05-27 00:47:04 -04:00
Barış Soner Uşaklı
f1b8492164 remove unnecessary checks 2017-05-27 00:30:07 -04:00
Barış Soner Uşaklı
9af252b899 notifications tests 2017-05-20 21:01:55 -04:00
Barış Soner Uşaklı
8920523e06 more tests 2017-05-13 21:45:54 -04:00
Peter Jaszkowiak
5ccb488b02 Fix indents 2017-05-09 11:45:09 -06:00
Peter Jaszkowiak
932ae4e86d Merge branch 'master' into notif-abort 2017-05-09 11:31:58 -06:00
Barış Soner Uşaklı
b18b0db5be notifications.js style 2017-05-08 20:36:43 -04:00
Peter Jaszkowiak
19d6386237 Also abort if no uids to push to 2017-04-26 10:48:08 -06:00
Peter Jaszkowiak
3350a89791 Allow aborting notification push 2017-04-25 15:27:12 -06:00
Julian Lam
d18cfced96 Merge remote-tracking branch 'origin/master' into develop 2017-04-12 23:57:14 -04:00
Peter Jaszkowiak
1ed571189c Make utils and translator easier to require
Move utils.walk to file.walk, backwards compatible
2017-04-08 20:27:52 -06:00
barisusakli
5a2ff8ed0a closes #5527 2017-03-14 23:03:09 +03:00
Julian Lam
72e77772db Merge branch 'master' into develop 2017-02-24 12:46:40 -05:00
Peter Jaszkowiak
4bb49a7171 ESlint no-unused-vars 2017-02-18 15:05:36 -07:00
Peter Jaszkowiak
896c8c7343 ESlint object-curly-spacing 2017-02-18 12:30:49 -07:00
Peter Jaszkowiak
1493afee2a ESlint indent 2017-02-18 02:38:03 -07:00
Peter Jaszkowiak
3b0dd2d1ef ESlint padded-blocks 2017-02-18 02:32:24 -07:00
Peter Jaszkowiak
604358ecc4 ESlint keyword-spacing, no-multi-spaces 2017-02-18 01:52:56 -07:00
Peter Jaszkowiak
2ba46808a1 ESlint one-var, fix comma-dangle 2017-02-17 20:20:42 -07:00
Peter Jaszkowiak
bc1d70c126 ESlint comma-dangle 2017-02-17 19:31:21 -07:00
Julian Lam
5dd892bd01 a bunch of changes here... allowing user profiles to be flagged, #5232 2016-12-07 12:07:22 -05:00
barisusakli
49267d54b7 topics unread tests 2016-11-28 14:15:20 +03:00
barisusakli
f1a933210b notifications.pushGroups 2016-11-18 11:15:27 +03:00
Ben Lubar
e151916f1a Fix followed topic notifications going to the last unread post
Regression introduced in 1b34ebe230.

Bug originally reported in #4469.
2016-11-10 17:55:50 -06:00
barisusakli
1b34ebe230 closes #5133 2016-11-10 15:26:53 +03:00
HeeL
4a3c31b2dc Fix space-before-function-paren linter rule 2016-10-13 11:43:39 +02:00
HeeL
3fa1c1f927 Fix space-infix-ops linter rule 2016-10-13 11:42:29 +02:00
barisusakli
038418bf87 batch.processArray
use batch.processArray in notifications.push and moveRecentReplies
added notification tests
added test for moveRecentReplies
clear group cache if a group is deleted
2016-10-11 16:06:47 +03:00
barisusakli
598c47b77f fix user icon in notifications 2016-09-20 00:04:05 +03:00
barisusakli
877820779c optimize notifications.getMultiple 2016-09-19 23:24:12 +03:00
Julian Lam
48ade6099c fixes #4469 2016-08-18 11:07:44 -04:00
barisusakli
5cbfa6f212 closes #4881 2016-07-25 15:05:23 +03:00