Julian Lam
783786cf8c
fix: do not blindly escape a notification's bodyLong
...
For 7+ years we were escaping this value, but it is in many cases already sanitized (as it may be a post content). For those cases when it is not, I now run it through parse.raw.
Instead of escaping, it now strips p, img, and a tags.
4 years ago
Peter Jaszkowiak
cc9d6fd08b
chore: eslint max-len
4 years ago
Peter Jaszkowiak
115d19e289
chore: eslint prefer-rest-params, prefer-spread
4 years ago
Peter Jaszkowiak
23f212a4c0
chore: eslint prefer-destructuring
4 years ago
Peter Jaszkowiak
dab3b23575
chore: eslint no-var, vars-on-top
4 years ago
Peter Jaszkowiak
b56d9e12b5
chore: eslint prefer-arrow-callback
4 years ago
Peter Jaszkowiak
707b55b6a5
chore: eslint prefer-template
4 years ago
Julian Lam
492cbc6227
fix: tests
...
/cc @pitaj
4 years ago
Julian Lam
f79aeef889
fix: posts.uploads.sync dissociates uploaded thumbs of the main pid
4 years ago
gasoved
72b050b4a8
test: post diff deletion tests
4 years ago
gasoved
eb642f40b9
feat: #9109 , ability to delete a post's diffs
4 years ago
Julian Lam
08736b1812
fix: use file lib instead of direct fs module access
4 years ago
Julian Lam
1f0c1cd229
fix: references to since-removed Topics.thumbs.resizeAndUpload
4 years ago
Julian Lam
4fc9da81a9
refactor: topic thumbs lib to topics.thumbs
4 years ago
Barış Soner Uşaklı
86f0f82be7
fix : #9068
4 years ago
Barış Soner Uşaklı
1eb5fabdb1
feat: #8900 , postQueue setting for category
4 years ago
Barış Soner Uşaklı
5bb5ec4618
fix : #8954 , clear purged replies and toPids ( #8959 )
...
* fix : #8954 , clear purged replies and toPids
* fix: redis test
4 years ago
Julian Lam
f33a9185ff
fix: on OP edit, call helper method to upload and resize thumb
4 years ago
Julian Lam
6e2da9966e
refactor: move plugin hook methods to plugin.hooks.*
4 years ago
Barış Soner Uşaklı
dbd814c25f
fix: spec, only call modifyUser on unique user objects
4 years ago
Barış Soner Uşaklı
903e9d82b8
feat: #8637
4 years ago
Barış Soner Uşaklı
f1f9b225b0
feat: #8824 , cache refactor ( #8851 )
...
* feat: #8824 , cache refactor
ability to disable caches
ability to download contents of cache
refactor cache modules to remove duplicated code
* fix: remove duplicate hit/miss tracking
check cacheEnabled in getUncachedKeys
4 years ago
Julian Lam
4439864ce0
fix: post editing not taking plugin hook results into account
5 years ago
Julian Lam
1392d064a1
fix(writeapi): normalizing data
5 years ago
Barış Soner Uşaklı
a05905f196
performance improvements ( #8795 )
...
* perf: nconf/winston/render
cache nconf.get calls
modify middleware.pageView to call next earlier
don't call winston.verbose on every hook see https://github.com/winstonjs/winston/issues/1669
translate header/footer separately and cache results for guests
* fix: copy paste fail
* refactor: style and fire hook only log in dev mode
* fix: cache key, header changes based on template
* perf: change replace
* fix: add missing await
* perf: category
* perf: lodash clone
* perf: remove escapeRegexChars
5 years ago
Barış Soner Uşaklı
9738e20207
refactor: merge post.edit
...
fix: dont fadeout/fadeint if title/post didnt change
5 years ago
Barış Soner Uşaklı
dc29f4dca2
refactor: switch to using slugify module
5 years ago
Julian Lam
4a63c20a72
chore: some optimizations for codeclimate
5 years ago
Barış Soner Uşaklı
ed092bf6b5
refactor: remove posts.tools.purge
...
moved the check to socketPosts.purge
5 years ago
Renovate Bot
1e5621c049
fix(deps): update dependency sanitize-html to v2
5 years ago
Barış Soner Uşaklı
16039b1117
refactor: post edit
5 years ago
Barış Soner Uşaklı
e72fe25920
fix: editing posts saving uncessary data
5 years ago
Barış Soner Uşaklı
4f14dc7a58
fix : #8640 , add bookmarks to intFields
5 years ago
Barış Soner Uşaklı
1e5981c0d6
feat: replace relative urls to absolute before sending email notifs
...
https://github.com/NodeBB/NodeBB/pull/8366/files
5 years ago
Julian Lam
0e58d2b866
fix: update post-queue hook names
5 years ago
Julian Lam
8cc36de284
feat: new filter hook prior to post queue addition
...
filter:post.queue
5 years ago
Julian Lam
a9dfc9a74e
feat: add replies to getPostSummaryByPids
5 years ago
Julian Lam
e0c7d65a92
Revert "feat: add reply count to getPostSummaryByPids"
...
This reverts commit de0f4aadb8
.
5 years ago
Julian Lam
de0f4aadb8
feat: add reply count to getPostSummaryByPids
5 years ago
Barış Soner Uşaklı
6924a22238
fix: tests
5 years ago
Barış Soner Uşaklı
bb224184d8
fix : #8539 , enforce content checks for post queue
5 years ago
Barış Soner Uşaklı
8bd63f61e0
feat: resolve flag on delete/purge/ban/delete account
5 years ago
Barış Soner Uşaklı
ce6b20c4b7
feat: remove topics.async.getTopicData usage
5 years ago
Barış Soner Uşaklı
844f2b4ed0
feat: #8524 , allow editing category of queued topic
5 years ago
Barış Soner Uşaklı
2485a55092
feat: #8521 , allow editing title before posting from queue
5 years ago
Barış Soner Uşaklı
c513b88dff
feat: #8427 , daily downvote limits
5 years ago
Barış Soner Uşaklı
b60e1cbf50
fix : #8469 , action:topic.changeOwner, action:post.changeOwner
5 years ago
Barış Soner Uşaklı
fef04fcf6b
fix: missing backgroundImage #8386
5 years ago
Barış Soner Uşaklı
c718b7293e
feat: #3783 , min/max tags per category
5 years ago
Barış Soner Uşaklı
af790e3f5e
refactor: shorter code
5 years ago