Commit Graph

823 Commits (f52f98fb898701c9934c8c73dcff9a88ede2c329)

Author SHA1 Message Date
Barış Soner Uşaklı 661a0f5068 fix: don't show deleted topics on unread
Barış Soner Uşaklı 75bcb0f484 fix: remove unused data from post/topic/user hashes
Barış Soner Uşaklı 6fb29e8408 fix: tests
Barış Soner Uşaklı 02d38caf47 refactor: async/await
Barış Soner Uşaklı 3caa387ac6 fix: tests
Baris Usakli 9c051386d5 fix: tests
Barış Soner Uşaklı ffe3670ff5 feat: deprecate file.isFileTypeAllowed
use image.isFileTypeAllowed, this function was always meant for images
Barış Soner Uşaklı 310c6fd33f
properly filter /unread /recent /popular /top ()
* feat: add failing test for pagination

* feat: test

* fix: redis tests

* refactor: remove logs

* fix: add new test

* feat: make sortedSetRangeByScore work with keys on redis

* fix: hardcoded set name

* feat: show topics from readable categories on recent/popular/top

* feat: rewrite unread topics

respect watched categories and followed topics

* fix: term + watched
Barış Soner Uşaklı 22b02f1407
feat: add failing test for pagination ()
* feat: add failing test for pagination

* feat: test

* fix: redis tests

* refactor: remove logs
Barış Soner Uşaklı b602c04463 feat: refactor getSortedSetRange to allow big arrays
Baris Usakli 1e5246f9ad feat: add new test
Barış Soner Uşaklı f9d6912b4a refactor: async/await file
Barış Soner Uşaklı 96ab8d05aa fix: only allow png/jpg/bmp in cover/profile images
Baris Usakli ecf39727cc fix:
Opliko b9583ed838 Add privilege for accessing user information ()
* Add view users info global privilege

* Show user ip only to global mods and admins

* fix missing comma

* Hide link for users without correct privilege

* move getting privilege information to getAllData

* Hide the link from Global Moderators as well

* Give Global Moderator view:users:info privilege

* Restrict ip in post menu to view:users:info

* add some trailing commas....

* Add privilege to categories test

* Add group privilege to categories test

* add upgrade script

* fix style for TravisCI

* more styling - change spaces to tabs

* some more styling fixes (hopefully final one)

* fix style for Travis CI

* hide ip in chat messages

* Don't show even hidden ips on user profile page
Barış Soner Uşaklı de4619689b fix: change params
Julian Lam 1796b65d34 feat: option to restrict group leaving, closes
Julian Lam 30a86ed553 fix: , dissociation on post purge
Barış Soner Uşaklı aea04de094
feat: update LESS to v3.x, ()
* feat: 

* fix: tests
Barış Soner Uşaklı f15c7f12b3 refactor: async/await
Barış Soner Uşaklı 1e0190abef fix: , groups.invite works with an array of uids
Barış Soner Uşaklı fa26855671 feat: , make isInvited, isPending work with uids
Julian Lam c44bf48c01 fix: removed console.logs
Julian Lam f736f0b382 fix: broken tests from 71b205a889
Barış Soner Uşaklı 23046bab9a Merge branch 'master' of https://github.com/NodeBB/NodeBB
Baris Usakli 2abe244b6e fix: newPostEditDuration
Barış Soner Uşaklı dec8040c09 feat: widgets/index.js
enable widget-essentials in tests
fix widget test
Barış Soner Uşaklı 3c32d8600f
fix: No new posts ()
* feat: debug no-new-posts

* feat: add test for user delete

* fix: timeout for flag test

* feat: shorter
Julian Lam 79eed9ae60 feat: meta/templates.js
Barış Soner Uşaklı 0b498acdcf fix:
Barış Soner Uşaklı 2f0a331f02 fix: don't return promise
Barış Soner Uşaklı 44a3352003 fix: socket.io methods calling callbacks twice if method returns promise
Julian Lam 4fb271c684
System chat messages ()
* fix: removed duplicate checkContent call in addMessage

addMessage is called in one place (sendMessage), and the checks
are already contained there. addMessage is the lower level call
and so should be called only from within core itself.

* feat:  chat system messages for join, leave, rename

* fix: add back content checking in .addMessage();

* fix: tests, and added .addSystemMessage() method

Tests were relying on message indices that changed due to the
new system messages.

* feat: add tests for system chat messages

* refactor: rewrite half of src/messaging/rooms.js, fix tests

* feat:  messaging/room.js

* fix: tests for messaging/room.js, 

* fix: trying to fix tests

* fix: omg :rage2:
Barış Soner Uşaklı c0c6c652be feat: , finish post module
Barış Soner Uşaklı 1b2b308a7e feat: , posts module
Barış Soner Uşaklı cd80c2638c feat:
user/password
user/picture
Barış Soner Uşaklı 0a690c5710 feat:
user/online.js
Barış Soner Uşaklı fe4c048198 feat:
user/index.js
user/info.js
user/invite.js
user/jobs.js
Barış Soner Uşaklı cd2e68cb2d feat: remove unused code, add 2 tests
Barış Soner Uşaklı 53e1b349ae
Change post owner ()
* feat: , allow array of keys for setObject

* feat: sortedSetRemoveBulk

* feat: test for bulk remove

* feat: , ability to change post ownership

* feat: , fix tid:<tid>:posters

* feat: , front end

* fix: , psql methods

* fix: add missing await

* fix: maybe psql
Barış Soner Uşaklı 4170abfd6b feat: add utils.promiseParallel
Barış Soner Uşaklı 805dcd7ca2
Async refactor in place ()
* 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
Julian Lam 8a6a58ee43
feat: added new admin option newbiePostEditDuration ()
* feat: added new admin option newbiePostEditDuration

Also:
  - Grammar-checked a couple language strings
  - Moved a couple form inputs around in new user restrictions
  - Added a test for the new option
  - fix: 'defore' typo
Barış Soner Uşaklı bd640a1107
Topic await errors ()
* 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
Barış Soner Uşaklı 3ecd703ea3 feat: , added sortedSetAddBulk
Barış Soner Uşaklı a39f0ef592 fix: , create per category user post zsets
Julian Lam 289dada5f7 fix(deps): update to eslint@6
Aziz Khoury a6436716ea feat: hooks can now return promise or call callbacks
* hooks can now return promise or call callbacks, either way works

* cleanups

* moar cleanups and fix callback 1st null arg

* rm unnessesary spread
Barış Soner Uşaklı 4b843ba16f fix: , allow invite and approval at the same time
Baris Usakli 31ccc860d3 feat: allow multiple scores in sortedSetsAdd