Barış Soner Uşaklı
16039b1117
refactor: post edit
4 years ago
Barış Soner Uşaklı
e72fe25920
fix: editing posts saving uncessary data
4 years ago
Barış Soner Uşaklı
4f14dc7a58
fix : #8640 , add bookmarks to intFields
4 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
Julian Lam
f909ed2541
feat: show editor in post diffs if available
5 years ago
Julian Lam
b3115ea813
fix : #8410
5 years ago
Julian Lam
58b3d608fc
feat: allow post diffs to be restored, #8406
5 years ago
Barış Soner Uşaklı
a73c755b05
feat: closes #8308 , edit post notif for watched topic posts
5 years ago
Barış Soner Uşaklı
b25b51bd97
feat: add action:post.updatePostVoteCount
5 years ago
Barış Soner Uşaklı
4f1128fd2b
fix: add missing await
5 years ago
Barış Soner Uşaklı
9d153fd388
fix : #8287 , dont readd user after deletion
...
don't add user uid back to users:* sorted sets if they are deleted
upgrade script to fix users:* sorted sets
5 years ago
Barış Soner Uşaklı
4d6b2ec3ce
fix: missing await
5 years ago
Julian Lam
ccc6118d30
Testing suite integration for openapi spec ( #8263 )
...
* feat: testing suite integration for openapi spec
The testing suite now takes the openapi spec into account. It will
check each route defined, make a call to it, and compare the
response with the defined schema. Any mismatches will cause the
test to fail.
* fix(openapi): removed debug stuff from tests
* fix(openapi): fixed some tests
* fix(openapi): added additional check to tests, test fixes
* fix(openapi): better tests, fixed spec errors
* fix(openapi): bad conditional in test
* fix: oops
* fix(openapi): more tests fixing
* fix(openapi): more tests
* fix(openapi): fix some more tests
* fix: verbose'd an info log
* fix: topic pagination route returns schema-optimized pagination block
* fix(openapi): more test/spec fixes
* fix(openapi): accidentally sending in authenticated jar for anon routes
* fix(openapi): more test/spec fixes
* fix(openapi): more spec fixes
* fix: timestampReadable Invalid Date
* fix(openapi): more tests... almost there
* fix(openapi): more tests fixing
* fix(openapi): finally all tests passing
* fix(openapi): added reverse test to compare response to spec
... and fixed all the tests that broke
* fix: remove tests related to group covers, as route is gone
* fix(openapi): broken test on travis
* fix(openapi): broken test on travis
* fix(openapi): broken test on travis
* fix(openapi): object cache is not present for psql
* fix: tests
Co-authored-by: Barış Soner Uşaklı <barisusakli@gmail.com>
5 years ago
Barış Soner Uşaklı
3e52557689
fix: change owner missing await
5 years ago
Opliko
740de034fa
#8115 - log post owner changes ( #8117 )
...
* log post owner changes
* log each post separately
* use map instad of a loop
5 years ago
Peter Jaszkowiak
8c314fe461
Support allowing classes
...
Otherwise `<input class="form-control">` can't work
5 years ago
Barış Soner Uşaklı
eabc6f4763
fix: crash if post doesn't have topic data
5 years ago
Barış Soner Uşaklı
1cedc4a0d6
feat: #7957 , allow post queue based on group
...
allow multiple select in ACP pages
5 years ago
Baris Usakli
f272daaf37
fix : #7960 , dont try to save size for non images
5 years ago
Barış Soner Uşaklı
75bcb0f484
fix: remove unused data from post/topic/user hashes
5 years ago
Barış Soner Uşaklı
a7d2b8a1fe
refactor: async/await socket.io
5 years ago
Julian Lam
30a86ed553
fix : #7853 , dissociation on post purge
6 years ago
Julian Lam
0c4cd840a0
fix: added comment back
6 years ago
Julian Lam
fe452762b7
fix: inability for plugins to actually alter parser sanitization config
...
/cc @pitaj
6 years ago
Julian Lam
2580306db9
feat: html sanitization on all filter:parse.* hooks, closes #7872
6 years ago
Barış Soner Uşaklı
80bd52fcfa
feat: add image and imageClass to post summaries
6 years ago
Julian Lam
29f96b199c
fix(style): requiring parens in block bodies
6 years ago
Julian Lam
0921230976
fix(style): updated code to follow new eslint recommendations
...
Squashed commit of the following:
commit f9ce878b269b3568f0d649309aae1af4dcfdfeef
Author: Julian Lam <julian@nodebb.org>
Date: Tue Aug 13 14:30:46 2019 -0400
fix(style): updated code to follow new eslint recommendations
commit 80dd370e413f22badb96ff2138e7991dfff6d836
Author: Julian Lam <julian@nodebb.org>
Date: Tue Aug 13 14:14:58 2019 -0400
fix(deps): update dependency sitemap to v4
Squashed commit of the following:
commit f4dd9cabb21e26fdc21f8413be822ea7c64251f8
Author: Julian Lam <julian@nodebb.org>
Date: Tue Aug 13 11:33:05 2019 -0400
fix: resolved breaking changes from sitemap v4 upgrade
commit 9043415ee16dcc27a8dcc2e4479d1bc5e2d1b60e
Merge: e3352b272 72590b346
Author: Julian Lam <julian@nodebb.org>
Date: Tue Aug 13 11:09:55 2019 -0400
Merge branch 'master' into renovate/sitemap-4.x
commit e3352b272eb9400bdb00774973181397803765e4
Author: Renovate Bot <bot@renovateapp.com>
Date: Mon Aug 12 07:59:05 2019 +0000
fix(deps): update dependency sitemap to v4
commit 8e3c0cdcae22acc32d352be8bb72d60e7502dbc5
Author: Renovate Bot <bot@renovateapp.com>
Date: Fri Aug 9 00:49:51 2019 +0000
fix(deps): update dependency commander to v3
commit 2104449d38818f2fa4d44b3a58a0a168781acbfb
Author: Renovate Bot <bot@renovateapp.com>
Date: Tue Aug 13 15:00:27 2019 +0000
fix(deps): update dependency mongodb to v3.3.0
commit d2937f446a21131c070ae5d0ff33d67cfe465b8c
Author: Barış Soner Uşaklı <barisusakli@gmail.com>
Date: Tue Aug 13 10:36:48 2019 -0400
feat: async/await admin/controllers
commit 1b97e8b199f960dc24e5722702f27499ae049914
Author: Misty (Bot) <deploy@nodebb.org>
Date: Tue Aug 13 09:28:39 2019 +0000
Latest translations and fallbacks
commit 69a48957a2f0d23c4d194b664bda3a0431179c01
Author: Barış Soner Uşaklı <barisusakli@gmail.com>
Date: Mon Aug 12 21:56:09 2019 -0400
feat: async/await
commit b9b2a7e593a452de4bef6d0ab6abe368a3bdb8dd
Author: Barış Soner Uşaklı <barisusakli@gmail.com>
Date: Mon Aug 12 20:58:29 2019 -0400
feat: async/await refactor
controllers/accounts
commit a8d43a175974a0c8ae3dc132bf51a7ed9a4c6305
Author: Baris Usakli <barisusakli@gmail.com>
Date: Mon Aug 12 14:49:40 2019 -0400
feat: async/await controllers/accounts
commit 2f25aae57bf9dbe98d655276770e56bed9ec023b
Author: Barış Soner Uşaklı <barisusakli@gmail.com>
Date: Sun Aug 11 23:09:50 2019 -0400
fix : #7831 , fix pagination
convert to async/await
commit c9e83f2374572264855a04156278eef256b0a20c
Author: Barış Soner Uşaklı <barisusakli@gmail.com>
Date: Sun Aug 11 00:14:35 2019 -0400
fix: remove empty line
commit 30be91b26c4dd7583412c4e8d56e9c1688e48a44
Author: Barış Soner Uşaklı <barisusakli@gmail.com>
Date: Sun Aug 11 00:13:41 2019 -0400
fix: remove useless catchs and empty line
commit 2e4a71c0b6104738f15ffbfe3246105b922fdfb3
Author: Renovate Bot <bot@renovateapp.com>
Date: Sat Aug 10 06:51:50 2019 +0000
chore(deps): update dependency eslint-config-airbnb-base to v14
6 years ago
Barış Soner Uşaklı
7beef91c3f
feat: async/await
6 years ago
Julian Lam
0e07ffa1d9
feat: send pids into filter:post.getFields hook
6 years ago
Baris Usakli
9780f5b975
fix : #7809 , dont check postDelay if submitting from queue
6 years ago
Barış Soner Uşaklı
6a289fbac9
fix : #7789
6 years ago
Barış Soner Uşaklı
b10ad7b6ff
fix: topicData passed to action:topic.edit
6 years ago
Barış Soner Uşaklı
3c32d8600f
fix : #7788 No new posts ( #7793 )
...
* feat: debug no-new-posts
* feat: add test for user delete
* fix: timeout for flag test
* feat: shorter
6 years ago
Barış Soner Uşaklı
34d85b5205
feat: switch to promise.all
6 years ago
Barış Soner Uşaklı
c0c6c652be
feat: #7743 , finish post module
6 years ago
Baris Usakli
c4bb467ea5
feat: #7743 posts/diff, posts/edit
6 years ago
Barış Soner Uşaklı
1b2b308a7e
feat: #7743 , posts module
6 years ago
Barış Soner Uşaklı
53e1b349ae
Change post owner ( #7752 )
...
* feat: #7749 , allow array of keys for setObject
* feat: sortedSetRemoveBulk
* feat: test for bulk remove
* feat: #7083 , ability to change post ownership
* feat: #7083 , fix tid:<tid>:posters
* feat: #7083 , front end
* fix : #7752 , psql methods
* fix: add missing await
* fix: maybe psql
6 years ago
Baris Usakli
8ef75be3e3
feat: #7743 , posts/votes
6 years ago
Baris Usakli
e1ecc36d04
feat: #7743 posts
6 years ago
Barış Soner Uşaklı
0a6cfb37c2
feat: #7743 , posts/user.js
6 years ago
Barış Soner Uşaklı
805dcd7ca2
Async refactor in place ( #7736 )
...
* feat: allow both callback&and await
* feat: ignore async key
* feat: callbackify and promisify in same file
* Revert "feat: callbackify and promisify in same file"
This reverts commit cea206a9b8e6d8295310074b18cc82a504487862.
* feat: no need to store .callbackify
* feat: change getTopics to async
* feat: remove .async
* fix: byScore
* feat: rewrite topics/index and social with async/await
* fix: rewrite topics/data.js
fix issue with async.waterfall, only pass result if its not undefined
* feat: add callbackify to redis/psql
* feat: psql use await
* fix: redis 🌋
* feat: less returns
* feat: more await rewrite
* fix: redis tests
* feat: convert sortedSetAdd
rewrite psql transaction to async/await
* feat: 🐶
* feat: test
* feat: log client and query
* feat: log bind
* feat: more logs
* feat: more logs
* feat: check perform
* feat: dont callbackify transaction
* feat: remove logs
* fix: main functions
* feat: more logs
* fix: increment
* fix: rename
* feat: remove cls
* fix: remove console.log
* feat: add deprecation message to .async usage
* feat: update more dbal methods
* fix: redis :voodoo:
* feat: fix redis zrem, convert setObject
* feat: upgrade getObject methods
* fix: psql getObjectField
* fix: redis tests
* feat: getObjectKeys
* feat: getObjectValues
* feat: isObjectField
* fix: add missing return
* feat: delObjectField
* feat: incrObjectField
* fix: add missing await
* feat: remove exposed helpers
* feat: list methods
* feat: flush/empty
* feat: delete
* fix: redis delete all
* feat: get/set
* feat: incr/rename
* feat: type
* feat: expire
* feat: setAdd
* feat: setRemove
* feat: isSetMember
* feat: getSetMembers
* feat: setCount, setRemoveRandom
* feat: zcard,zcount
* feat: sortedSetRank
* feat: isSortedSetMember
* feat: zincrby
* feat: sortedSetLex
* feat: processSortedSet
* fix: add mising await
* feat: debug psql
* fix: psql test
* fix: test
* fix: another test
* fix: test fix
* fix: psql tests
* feat: remove logs
* feat: user arrow func
use builtin async promises
* feat: topic bookmarks
* feat: topic.delete
* feat: topic.restore
* feat: topics.purge
* feat: merge
* feat: suggested
* feat: topics/user.js
* feat: topics modules
* feat: topics/follow
* fix: deprecation msg
* feat: fork
* feat: topics/posts
* feat: sorted/recent
* feat: topic/teaser
* feat: topics/tools
* feat: topics/unread
* feat: add back node versions
disable deprecation notice
wrap async controllers in try/catch
* feat: use db directly
* feat: promisify in place
* fix: redis/psql
* feat: deprecation message
logs for psql
* feat: more logs
* feat: more logs
* feat: logs again
* feat: more logs
* fix: call release
* feat: restore travis, remove logs
* fix: loops
* feat: remove .async. usage
6 years ago
Barış Soner Uşaklı
bd640a1107
Topic await errors ( #7727 )
...
* feat: derp await
* feat: restore user.getSettings
* feat: cleanup
* feat: make tid const
* feat: cleanup
* fix: tests
* feat: deprecate filter:controllers.topic.get
* feat: rewrite post-index logic
* feat: change calculation to match others
* fix: use .async
* feat: remove try/catch wrapper
6 years ago
Baris Usakli
41bc6ca2c4
feat: add status to post summaries
6 years ago
Barış Soner Uşaklı
6a7bc1c5fb
fix: on new post add it to cid::uid::pids
6 years ago
Barış Soner Uşaklı
a39f0ef592
fix : #5570 , create per category user post zsets
6 years ago
Barış Soner Uşaklı
035f624758
Remove implicit mod privs. closes #6345 ( #7648 )
...
* feat: add upgrade script to give mods privs
* feat: give all privileges when making a moderator
* feat: remove implicit privs
* feat: give global mods default privs
* feat: more priv fixes
* feat: use lodash
* fix: remove implicit mod priv from topic delete
* fix: more privs
* fix: posts.canEdit
* fix: canDelete and canEdit
* fix: tests, remove console.log
* feat: shorter functions
* feat: add tests
* fix: uids
* fix: redis random test fail
6 years ago
Barış Soner Uşaklı
a8409fbd49
fix : #7636 , use reputation threshold for post queue
6 years ago
Barış Soner Uşaklı
a8e6520559
fix : #7620 , allow adding new fields into user objects for posts
6 years ago
Barış Soner Uşaklı
35d10f764a
fix : #7619
6 years ago
Barış Soner Uşaklı
b52dba5c92
fix : #7508
6 years ago
Julian Lam
3ec9fc4098
fix : #7490 once again
6 years ago
Julian Lam
86e1cdd541
fix : #7490 , handling of image sizes if no size saved in db
6 years ago
Julian Lam
697a6597f3
fix : #7444 Re-factor handling of og:image tags ( #7463 )
...
* fix: display proper site logo or og-image with sizes in head
* fix: refactor og:image logic, #7444
- Updated logic to set additional og:image tags based on more
factors
- logo.png fallback
* feat: save image sizes on post upload, re: #7444
* fix: awaiting addTags in topic controller
* fix: pass strings to meta tags object
* fix: sending absolute image url to meta tag
* fix: removed unneeded async and requiring sync db
* feat: upgrade to calculate image sizes for all post uploads tracked
* fix: tests
6 years ago
Julian Lam
745a9589e9
Use topics:read privilege for topic filtering use cases ( #7462 )
...
* fix: use topics:read privilege for topic filtering use cases
* fix: tests
* fix: more broken tests
6 years ago
Baris Usakli
7211dde7b9
feat: #7358
6 years ago
Barış Soner Uşaklı
684175f7d7
fix : #7413
6 years ago
Barış Soner Uşaklı
ac655564bb
fix: post queue notifs
...
fix moderators not showing up immediately when adding them
6 years ago
Baris Usakli
1a3838e13c
fix: missing notification
6 years ago
Baris Usakli
7809ba2800
fix : #7193 , closes #7194
6 years ago
Barış Soner Uşaklı
fef7e13c9e
feat: small fixes
6 years ago
Barış Soner Uşaklı
29b63ae7fb
fix : #6979
6 years ago
Barış Soner Uşaklı
2f57a4b9a6
fix: dont update cid:<cid>:tids:votes if topic is pinned
6 years ago
Barış Soner Uşaklı
112b5c861a
change queue logic, if user has negative rep always queue their post
6 years ago
Baris Usakli
8e5a6d9767
add banned:expire to user data
6 years ago
Barış Soner Uşaklı
e17c4b2766
uid fixes
6 years ago
Barış Soner Uşaklı
69bb3293ee
misc fixes
...
handle spider uids properly
6 years ago
renovate[bot]
64b9dabff8
chore(deps): update dependency eslint-config-airbnb-base to v13 ( #6599 )
...
* chore(deps): update dependency eslint-config-airbnb-base to v13
* chore: #6599 , linting 😬
6 years ago
Barış Soner Uşaklı
4caaa046d7
dont load post data again
...
shorter async.parallel
6 years ago
Barış Soner Uşaklı
d3e4daebec
posts/delete cleanup
6 years ago
Baris Usakli
12f3f56b01
change to .exists
6 years ago
Barış Soner Uşaklı
fb6067a7ca
only parse if field is requested
6 years ago
Barış Soner Uşaklı
f3a679e268
remove parseInts
6 years ago
Baris Usakli
138154a71c
move modules
6 years ago
Barış Soner Uşaklı
ac39112271
remove more parseInts
6 years ago
Barış Soner Uşaklı
9c022afae1
Parse int ( #6853 )
...
* Store config fields as JSON in the db
Fewer parseInts
* Remove unnecessary parseInts
* remove some dupe code add tests
* remove console.log
* remove more parseInts
* WIP: read meta.configs defaults from defaults.json
remove more parseInts
* more work
* add log for failing test
* update admin pwd
* fix tests, dont require posts/cache before configs are initialized
* handle saves
* Test boolean conditions
* remove more parseInts
* Fix boolean values
* remove lots more parseInts
* removed json parsing
* renamed var to number
* categories dont have timestamp
6 years ago
Barış Soner Uşaklı
c3a903142a
closes #6850
6 years ago
Barış Soner Uşaklı
26d4e0852f
use includes instead of indexOf
...
use _.uniq instead of filter&indexOf
6 years ago
Baris Usakli
9251912282
move methods from posts to posts/data
6 years ago
Barış Soner Uşaklı
6c15aee888
add cache hits/misses to posts cache
6 years ago
Barış Soner Uşaklı
5c7dd54815
fix zsets and update them on post move, closes #6823 ( #6827 )
6 years ago
Barış Soner Uşaklı
6a377568d2
closes #6764 fix typo in notif rescind
7 years ago
Julian Lam
aaa9561b7f
Revert "moved filter:post.getPostSummaryByPids to before parsePosts call"
...
This reverts commit cf82407a8f
.
7 years ago