Commit Graph

9606 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
ae4016d9e0 add getCateries to helpers 2018-08-17 16:39:56 -04:00
Andrew Rodrigues
12940b577b closes #6703 2018-08-15 20:42:59 -04:00
Julian Lam
2ce6a85756 properly closes #6698 2018-08-13 14:17:51 -04:00
Julian Lam
f751d21d1e removed debug line 2018-08-13 12:06:56 -04:00
Julian Lam
f9d3484ec6 fixes #6543 2018-08-10 16:07:25 -04:00
Julian Lam
ed9dc113b0 sanitizing notes in flags details page, fixes #6698 2018-08-10 15:01:49 -04:00
Julian Lam
a77630c6be closes #6697 2018-08-10 14:22:33 -04:00
Ben Lubar
33228bb7fe PostgreSQL database driver (#5861)
* [test/database/list] Fix test list 4 being used in two different tests

* [database/postgres] PostgreSQL database driver

* [database/postgres] Make transactions work based on continuation scope.

* [database/postgres] Implement nested transactions

* eslint --fix

* Add database changes from earlier this week to the PostgreSQL driver.

* Fix typo

* Fix postgres.incrObjectFieldBy returning undefined instead of null when given NaN

* [database/postgres] Fix sortedSetsCard returning an array of strings.

* Update socket.io postgres adapter

* Fix PostgreSQL erroring when multiple updates are made to the same sorted set entry in a single operation.

Add a test case to catch this error.

* Fix lint errors.

* Only prune sessions on one instance in a cluster to avoid deadlocks.

They're caught and handled by the database server, but they spam the logs.

* Fix arguments.slice.
2018-08-08 15:13:48 -04:00
Jimb Esser
3cccbbc1f2 Add option to enable/disable HSTS
Also fix HSTS middleware being added twice.
2018-08-07 10:33:55 -04:00
Barış Soner Uşaklı
1c286e4536 not even used 2018-08-03 18:50:45 -04:00
Barış Soner Uşaklı
fa499aef18 closes #6680 2018-07-31 14:26:17 -04:00
Baris Usakli
e7bd0cea74 fix lint 2018-07-27 14:27:23 -04:00
Baris Usakli
bcef32c5af closes #6645 2018-07-27 13:38:37 -04:00
Baris Usakli
546b13b897 fix lint and tests 2018-07-27 13:10:52 -04:00
Baris Usakli
79ffae608e closes #6675 2018-07-27 12:58:01 -04:00
Baris Usakli
4200cff47c closes #6662 2018-07-27 12:48:15 -04:00
Julian Lam
3c6c0ed7a1 restoring passwordExpiry for use in continueLogin, fixed tests, hopefully 2018-07-27 12:34:51 -04:00
Julian Lam
786af5fbb3 derp 2018-07-27 11:57:41 -04:00
Julian Lam
b6a5419ca1 closes #6674 2018-07-27 11:54:32 -04:00
Julian Lam
4f8815eb78 closes #6646 2018-07-26 16:38:40 -04:00
Julian Lam
ea2bd33bfa fixes #6608, restored template values in widget containers 2018-07-26 15:00:49 -04:00
Julian Lam
7dfe953526 closes #6672 2018-07-26 14:36:25 -04:00
Julian Lam
48197e2d25 this upgrade script was written in 2018, not 2017, heh 2018-07-26 11:02:43 -04:00
Barış Soner Uşaklı
c7d6cacd98 closes #6658 2018-07-26 10:52:06 -04:00
Ben Lubar
44373afc52 Fix socket.io not working properly in single-host clusters. (#6669)
This is because we don't use the cluster module, so the master nodejs process doesn't know about any of the clients through the socket API.
2018-07-25 11:04:18 -04:00
Julian Lam
3522ad0e05 Revert "closes #6664"
This reverts commit f27a0d252c.
2018-07-24 16:05:05 -04:00
Julian Lam
f27a0d252c closes #6664 2018-07-24 15:43:54 -04:00
Julian Lam
506467ad6f closes #6663 2018-07-24 10:30:47 -04:00
Ben Lubar
c1e98eefa7 Allow single-host clusters to not send pubsub and socket.io messages through the database. (#6659)
* Allow single-host clusters to not send pubsub and socket.io messages through the database.

* Fix lint errors.
2018-07-23 12:21:36 -04:00
Barış Soner Uşaklı
87b6808c4e refactor to use getCidsByPrivilege
switch to .includes
2018-07-20 14:34:53 -04:00
Ben Lubar
f1a6537fc2 Add notification frequencies from nodebb-plugin-upvote-notifications. (#6640)
* Add notification frequencies from nodebb-plugin-upvote-notifications.

https://github.com/boomzillawtf/nodebb-plugin-upvote-notifications

* Fix editing settings clearing upvote notification preferences.
2018-07-20 10:29:51 -04:00
Sebastian G. Marinescu
e35d4a7d85 closes #6283 2018-07-17 15:55:41 -04:00
Peter Jaszkowiak
04d31fe1d4 Precompile all templates
- Benchpress compilation is 33x faster now
- Native module with JS fallback and pre-built binaries
- Dev template build is <1sec now
- Minified template build is ~5sec (uglify accounts for almost all)
2018-07-15 00:12:37 -06:00
Julian Lam
7558046e75 add brute-force protection for change password and email actions 2018-07-11 16:28:40 -04:00
Barış Soner Uşaklı
91f9c60660 closes #6643 2018-07-10 12:14:12 -04:00
Barış Soner Uşaklı
85a55d1740 closes 2018-07-09 14:57:42 -04:00
Barış Soner Uşaklı
cfb9784527 closes #6641 2018-07-09 14:26:21 -04:00
Baris Usakli
16a7728ab8 fix redis warnings 2018-07-06 14:20:37 -04:00
Baris Usakli
cc6a683bc4 closes #6631 2018-07-06 14:20:10 -04:00
Peter Jaszkowiak
65b4bafb16 Fix @scoped themes 2018-07-06 13:00:18 -04:00
Peter Jaszkowiak
7cd8274c0f Add series flag for ./nodebb build 2018-07-06 13:00:18 -04:00
Barış Soner Uşaklı
8eea6017fe parseInt uid 2018-07-05 18:53:59 -04:00
Julian Lam
7a53fa9469 Added block and unblock button to profile dropdown menu, #6560 2018-07-05 14:20:33 -04:00
Julian Lam
a34584e8f5 fixed blocking cache derp 2018-07-05 14:20:33 -04:00
Julian Lam
f09b1acfb7 closes #6627 2018-07-04 09:52:26 -04:00
Barış Soner Uşaklı
4ed079555e Merge remote-tracking branch 'refs/remotes/origin/master' into blocks 2018-07-03 18:43:43 -04:00
Barış Soner Uşaklı
3449cf321b add back cache and pubsub 2018-07-03 18:43:29 -04:00
Barış Soner Uşaklı
ae0563375e derp 2018-07-03 18:13:47 -04:00
Julian Lam
ad8ac2bdff removed unused checkPassword socket call 2018-07-03 17:44:49 -04:00
Julian Lam
fb42862ec7 check password validity in user delete socket call 2018-07-03 16:38:51 -04:00