Commit Graph

17122 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
08dfb3470c fix tests 2018-09-14 18:00:52 -04:00
Barış Soner Uşaklı
b43bfa3d5b closes #6759
-moved user.blocks.filter from unread controller to getUnreadTopics so
topics are filtered at other places this function is called
- when a new post is made do not send it to uids that have blocked the
poster
- update getUnreadTids so it does not return topics that have new posts
from blocked users
- update hasReadTopics so it does not return false data if topic has new
posts from blocked users
2018-09-14 16:23:21 -04:00
smyther
0c9907367a Implement fix for multiple fork cards showing (#6757) 2018-09-14 10:07:01 -04:00
Misty (Bot)
fe118fe1c3 Latest translations and fallbacks 2018-09-13 09:31:43 +00:00
Barış Soner Uşaklı
cfe0e690b5 up themes 2018-09-11 11:14:27 -04:00
Barış Soner Uşaklı
41aae6f418 closes #6749 2018-09-11 11:11:41 -04:00
Barış Soner Uşaklı
ebaea9b6c1 closes #6743 2018-09-08 14:01:15 -04:00
Misty (Bot)
60c54d6cdf Latest translations and fallbacks 2018-09-08 09:31:28 +00:00
Barış Soner Uşaklı
37ca5a1c63 filter falsy teasers 2018-09-06 18:48:46 -04:00
Barış Soner Uşaklı
93d52ef338 default to 'recent' sort 2018-09-06 16:23:40 -04:00
Barış Soner Uşaklı
ea1697d073 remove console.log 2018-09-06 14:41:23 -04:00
Barış Soner Uşaklı
25fed0aa8d change isPasswordCorrect to return false if user does not have password 2018-09-06 14:32:44 -04:00
Barış Soner Uşaklı
84a0a68b2b up vanilla 2018-09-05 17:02:41 -04:00
Barış Soner Uşaklı
6f18cf368b closes #6741 2018-09-05 14:03:04 -04:00
Andrew Rodrigues
bd0983c6a1 add postgres to issue template 2018-09-05 13:13:39 -04:00
Misty (Bot)
59fd27510a Latest translations and fallbacks 2018-09-05 09:32:04 +00:00
Renovate Bot
a3cb7dc68a Update dependency nyc to v13 2018-09-04 15:13:38 -04:00
Renovate Bot
3175d58dc0 Update dependency eslint to v5.5.0 2018-09-04 15:12:51 -04:00
Renovate Bot
65497b18fa Update dependency validator to v10.7.1 2018-09-04 15:12:41 -04:00
Barış Soner Uşaklı
446b125c83 escape post content 2018-09-04 10:59:52 -04:00
LudwikJaniuk
c7f3b76b4e DRY req props that depend on auth (fix #6727) (#6731)
* DRY req props that depend on auth (fix #6727)

authentication leads to req.loggedIn and req.uid being set. However, a
later authentication event might outdate them. Here, I create one
function for setting those properties, and make sure it also is called
on the `action:middleware.authenticate` hook, which would be such an
authentication event. If there are other places, those should be added
as well.

* fix lint errors

* fix lint error

* change exports
2018-09-04 09:43:33 -04:00
Barış Soner Uşaklı
3e1b007f9f escape title in post queue 2018-09-04 09:39:08 -04:00
renovate[bot]
f51b2e07f4 Update dependency jimp to v0.4.0 (#6682) 2018-09-03 15:27:33 -04:00
Misty (Bot)
13044df14e Latest translations and fallbacks 2018-09-03 09:31:54 +00:00
Ben Lubar
97a3079bc0 Optimize PostgreSQL session store.
- Sets session ID to be a constant-sized character field inline in the
  table instead of a variable-length character field compressed outside
  of the row.
- Changes the session data from "json" to "jsonb" which is faster and
  smaller on disk with the drawback of not maintaining key order and
  whitespace (which we don't care about at all)
- Adds a clustered index on the session expiration timestamp, which will
  make periodic session purging much faster.

(For an example, WTDWTF currently has 482355 sessions in the table, and
 because there is no index on the expiration timestamp, PostgreSQL must
 check all the rows in the table every time.)

This upgrade script can run concurrently with a live NodeBB instance,
but any action that touches sessions will wait until the upgrade script
is done.

Does not touch the database if the database driver is not set to
PostgreSQL or if there is a Redis database configured.
2018-09-02 00:32:55 -04:00
Julian Lam
cc532d2c8b bump persona 2018-08-31 16:04:51 -04:00
Julian Lam
c2c925cacd closes #6678 2018-08-31 15:34:36 -04:00
Julian Lam
29836aaad9 rename session account middleware to sessions, plural, prep for fixing #6678 2018-08-31 15:34:36 -04:00
Baris Usakli
5b45b2f72c closes #6729 2018-08-31 11:48:13 -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
Julian Lam
e882a091a1 updated blocks localisations from Tx 2018-08-31 10:46:32 -04:00
Julian Lam
c1725442ea added progress bar to username_email_history upgrade script 2018-08-30 17:03:42 -04:00
Julian Lam
545e678e8a fixes #6726 2018-08-30 15:08:01 -04:00
Julian Lam
d3ee71e09f bump persona 2018-08-30 14:01:00 -04:00
Julian Lam
ba96a7a7bc bump emoji 2018-08-30 12:59:22 -04:00
Julian Lam
5c04ec2d63 removed client-side chat message length check in favour of server-side check, firing new hook on messaging.checkContent for hooks to intercept 2018-08-29 14:31:53 -04:00
Misty (Bot)
e79f0dad90 Latest translations and fallbacks 2018-08-29 09:32:27 +00:00
Barış Soner Uşaklı
2a2e8136cd fix tests 2018-08-28 16:19:37 -04:00
Julian Lam
1e3cdc99ac fixes #6702 2018-08-28 14:29:51 -04:00
Misty (Bot)
6bb62a4728 Latest translations and fallbacks 2018-08-28 09:31:58 +00:00
Andrew Rodrigues
a06b33a713 fix html characters when cloning children categories 2018-08-27 18:40:56 -04:00
Julian Lam
8618afb45d added Latvian localisation strings 2018-08-27 10:27:58 -04:00
Renovate Bot
40b453e9fd Update dependency jsdom to v12 2018-08-27 10:06:19 -04:00
Renovate Bot
9e2e32500a Update dependency smtp-server to v3.4.7 2018-08-27 10:05:35 -04:00
Misty (Bot)
e56b6daee4 Latest translations and fallbacks 2018-08-26 09:31:47 +00:00
Julian Lam
aaa9561b7f Revert "moved filter:post.getPostSummaryByPids to before parsePosts call"
This reverts commit cf82407a8f.
2018-08-26 00:08:06 -04:00
Misty (Bot)
badb06a9de Latest translations and fallbacks 2018-08-25 09:31:07 +00:00
Julian Lam
cf82407a8f moved filter:post.getPostSummaryByPids to before parsePosts call
/@pitaj
2018-08-24 14:54:11 -04:00
Renovate Bot
33020b1ee0 Update dependency validator to v10.7.0 2018-08-24 10:47:22 -04:00
Julian Lam
9d202d9be9 closes #424 2018-08-23 10:02:57 -04:00