151 Commits (a0e2704da1437af8d1086dc0bdba7165277b3530)

Author SHA1 Message Date
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ı 198d05875f feat: cleanup, use bulk 6 years ago
Barış Soner Uşaklı 644504ff02 fix: #7483, show latest undeleted message as teaser 6 years ago
Barış Soner Uşaklı 4d9bc30d1f
feat: async3 upgrade (#7639)
* feat: async3 upgrade WIP

* fix: async.doWhilst

* fix: async early exit

* fix: psql doUntil

* fix: psql again
6 years ago
Barış Soner Uşaklı 7ba4a864fd fix: #7629, new filter hook for room rename 6 years ago
Barış Soner Uşaklı fe0f95a2b1 fix: #7085 7 years ago
Barış Soner Uşaklı e55fb43703 fix: #7086 7 years ago
Barış Soner Uşaklı 71163421aa fix: wrong variable #7085 7 years ago
Peter Jaszkowiak ba619c7ec8 style(eslint): match operator-linebreak preferences 7 years ago
Barış Soner Uşaklı e17c4b2766 uid fixes 7 years ago
Barış Soner Uşaklı 69bb3293ee misc fixes
handle spider uids properly
7 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 😬
7 years ago
Barış Soner Uşaklı fb6067a7ca only parse if field is requested 7 years ago
Barış Soner Uşaklı f3a679e268 remove parseInts 7 years ago
Baris Usakli 138154a71c move modules 7 years ago
Baris Usakli 5293a6515c fix lint 7 years ago
Baris Usakli fdbefa3d1f remove more parseInts 7 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
7 years ago
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 7 years ago
Baris Usakli 4200cff47c closes #6662 7 years ago
Julian Lam 506467ad6f closes #6663 7 years ago
Barış Soner Uşaklı 7df57ba7a7 remove dupe code 7 years ago
Barış Soner Uşaklı b0dad9bd7f closes #6369 7 years ago
Barış Soner Uşaklı 7a1888dfbf closes #6514 7 years ago
Julian Lam 71c8a78748 updated properties to match other similar calls
re: #6501
7 years ago
Julian Lam 5eeec6f470 closes #6501 7 years ago
Julian Lam a367b698e3 a bit more integration for #6463 7 years ago
Julian Lam 1ce448f2a1 Merge remote-tracking branch 'origin/master' into develop 7 years ago
Baris Usakli e99d4a5c61 closes #6313 7 years ago
Julian Lam f37b9d786d Merge remote-tracking branch 'origin/master' into develop 8 years ago
Baris Usakli 48cff9bfcb fix chat message subject 8 years ago
Julian Lam d1ccd78ac2 Merge remote-tracking branch 'origin/master' into develop 8 years ago
Barış Soner Uşaklı d2ffdbda7d closes #6203 8 years ago
Julian Lam 82a95a03be Chat message soft deletion -- closes #6181
Squashed commit of the following:

commit f84c06bdcc45f24ef7ffde6a8f33b48d8f97fc36
Author: Julian Lam <julian@nodebb.org>
Date:   Mon Dec 18 14:42:47 2017 -0500

    added restore handler for chat messages

commit 725cd370c6ea1e8f4a28298350f3dc024d4e668e
Author: Julian Lam <julian@nodebb.org>
Date:   Mon Dec 18 14:23:52 2017 -0500

    backend logic and testing complete for deletion and restoration of chat messages

commit 072da758319cc93fa4c6f8bc0d672a1b716dc06e
Author: Julian Lam <julian@nodebb.org>
Date:   Mon Dec 18 13:52:35 2017 -0500

    changing message delete logic to not remove mids, but to filter when retrieving

commit 68bf373305ab82737658a7c31dc5549af4d6d69f
Author: Julian Lam <julian@nodebb.org>
Date:   Mon Dec 18 12:37:58 2017 -0500

    logic to handle deletion of a deleted chat message -- added some failing tests

commit 6899d0d234fa752e227188aa69cfcabd0d0500cc
Author: Julian Lam <julian@nodebb.org>
Date:   Mon Dec 18 11:35:36 2017 -0500

    chat message deletion logic
8 years ago
Julian Lam 541aa7fbc6 closes #6177 8 years ago
Barış Soner Uşaklı 99eb1d1785 closes #6163 8 years ago
Barış Soner Uşaklı dd176dd5f2
Notification delivery (#6072)
* ability for users to choose how they receive notifications

add type field to more notifications, the type field is used to
determine what to do based on user
setting(none,notification,email,notificationemail)

* change var name to types

* cleanup

* add event types for privileged users

* remove unused language keys

* fix uids check

* changed if statements

* upgrade script to preserver old settings
8 years ago
Peter Jaszkowiak 46fafb20b9 Remove string.js dependency 8 years ago
Barış Soner Uşaklı 5cc39e8546 Merge remote-tracking branch 'refs/remotes/origin/master' into develop
# Conflicts:
#	package.json
#	src/views/admin/manage/ip-blacklist.tpl
8 years ago
Barış Soner Uşaklı a46db9616c fix message delete and add test 8 years ago
Barış Soner Uşaklı 1875764aca fix typo in delete 8 years ago
Julian Lam d9ace1723c removed references to libs that aren't used 8 years ago
Julian Lam a2627d2066 added default payload to emails, and adding nodebb logo for email header 8 years ago
Barış Soner Uşaklı 9af252b899 notifications tests 8 years ago
Barış Soner Uşaklı 59387540c7 style 8 years ago
Peter Jaszkowiak 932ae4e86d Merge branch 'master' into notif-abort 8 years ago
Peter Jaszkowiak 4b87324234 Quick fix 8 years ago
Peter Jaszkowiak 033ce02e7b Rename hooks
Add `static:messaging.canMessageRoom` as well
8 years ago
Peter Jaszkowiak 42e21d5aa9 Add more messaging hooks 8 years ago
barisusakli b45111d44b show max message length in error message 8 years ago
Julian Lam d18cfced96 Merge remote-tracking branch 'origin/master' into develop 8 years ago
Peter Jaszkowiak 1ed571189c Make utils and translator easier to require
Move utils.walk to file.walk, backwards compatible
8 years ago
barisusakli 5a2ff8ed0a closes #5527 8 years ago
barisusakli 6f49509645 fix newSet on redis 8 years ago
Peter Jaszkowiak dd2b930824 Resolve merge conflicts, minify only `.js` files 8 years ago
barisusakli 5c01c7b1c7 delayed notification test 8 years ago
Peter Jaszkowiak 93f38d4f30 ESlint no-multi-assign
and max-nested-callbacks, no-mixed-requires, max-statements-per-line
8 years ago
Peter Jaszkowiak 57f89663aa ESlint radix 8 years ago
Peter Jaszkowiak 896c8c7343 ESlint object-curly-spacing 8 years ago
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks 8 years ago
Peter Jaszkowiak feb8405f95 ESlint eol-last 8 years ago
Peter Jaszkowiak b09b3aef7f ESlint no-undef, remove global comments 8 years ago
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle 8 years ago
barisusakli ba1889f441 messaging refactor 9 years ago
barisusakli dada858565 add canReply to messages 9 years ago
Julian Lam 02998669c3 introducing option to disable chat message editing/deletion 9 years ago
barisusakli f0f3a86908 closes #5128
write more messaging tests
9 years ago
barisusakli 235fe9efe3 fix chat modal title 9 years ago
HeeL 4a3c31b2dc Fix space-before-function-paren linter rule 9 years ago
barisusakli eb174739ee closes #5101 9 years ago
barisusakli fe50c8d124 closes #5078 9 years ago
barisusakli abd99760e5 closes #5070 9 years ago
barisusakli 07fe5057e1 make sure validator.escape() receives strings only 9 years ago
barisusakli 276031cd6f closes #4585, closes https://github.com/NodeBB/nodebb-theme-persona/issues/299 9 years ago
barisusakli b70610703a fix crash in notifs 9 years ago
barisusakli 1c0ef00836 closes #4886 9 years ago
Paul Westerdale 05a55c7d65 add roomId to messaging filter (#4596) 9 years ago
pichalite e23377580d fixes #4506 9 years ago
barisusakli 05cc3fe4ef closes #4335 9 years ago
barisusakli a67f3d2a15 closes #4299 9 years ago
Barış Soner Uşaklı 46c3e5c126 chat notif/unread fix 10 years ago
barisusakli 18013c5518 closes #3977 10 years ago
barisusakli f91afb5b99 closes #4030 10 years ago
barisusakli 29e87ac984 fix initial room creation 10 years ago
barisusakli df605babff closes #3983 10 years ago
barisusakli abed319da2 closes #3996 10 years ago
barisusakli 0887105046 created chat:room hashes, save owner uid in hash, update chat uids when they message 10 years ago
barisusakli dff3d7f20e various group chat fixes #3980
fix multiple modals using the same tagsinput
fix online user getting chat notification
fix owner not being able to remove users in the chat modal
10 years ago
Barış Soner Uşaklı f4e502c793 simpler isNewSet 10 years ago
barisusakli 002e931a9c rev 10 years ago
barisusakli 832a20e59e markRead fixes 10 years ago
barisusakli 1bd9b364e4 fix notifs, dont send to self, fix notification path to roomId 10 years ago
barisusakli d8810ceae9 send messages 10 years ago
barisusakli 784ff07907 ability to add/remove users from chat rooms, tagsinput 10 years ago
barisusakli 8fab270852 leaveRoom method, small fixes 10 years ago
barisusakli f8a6666e1a chat notify changes 10 years ago
barisusakli c5d2f61b01 more fixes 10 years ago
barisusakli 6b12bd2328 update messaging.editMessage 10 years ago
barisusakli 5d1169e686 changed the chat route to /chats/:roomid? 10 years ago
barisusakli 58d05f7c79 recent chat list with rooms 10 years ago