psychobunny
4fc84e9f5c
chore: lint notifications.js
2020-09-28 11:18:43 -04:00
psychobunny
5b427a0c3b
feat: option in ACP to configure notification/email delay for chats
2020-09-28 11:15:45 -04:00
Barış Soner Uşaklı
ce6b20c4b7
feat: remove topics.async.getTopicData usage
2020-07-24 12:02:16 -04:00
Barış Soner Uşaklı
a46adb3fd5
fix: more tests
2020-07-21 20:43:16 -04:00
Julian Lam
4f51838df8
feat: fire new hooks on chat message editing
2020-07-07 17:31:10 -04:00
Julian Lam
9a6b87d261
fix: editing chat messages does not go through content sanity checks
2020-07-06 16:27:13 -04:00
Barış Soner Uşaklı
af790e3f5e
refactor: shorter code
2020-06-19 12:03:33 -04:00
Barış Soner Uşaklı
0041c02465
fix: messaging unread
...
dont mark chat room unread and then read right away for the user sending the message
2020-06-10 20:49:41 -04:00
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 >
2020-04-23 21:50:08 -04:00
Julian Lam
93acd13999
fix : #8206 first message in chat has false newSet
2020-03-16 21:15:04 -04:00
Barış Soner Uşaklı
067034082f
fix : #6422 , update deleted/restored messages
2020-02-14 23:26:54 -05:00
Barış Soner Uşaklı
23810cc64b
fix : #8133 , check if user is in room before removing
2020-01-23 22:40:14 -05:00
Barış Soner Uşaklı
30c503611c
refactor: messaging
2020-01-23 22:19:15 -05:00
Barış Soner Uşaklı
cd1fa27a8b
fix: add missing await
2020-01-23 22:19:00 -05:00
Barış Soner Uşaklı
f799f017ab
fix: missing await
2020-01-23 22:04:49 -05:00
Julian Lam
594cd7e176
fix : #8127 user join system message duplicated
...
- Now showing user-join message for chat owner in addition to the newly
added user
- If a modal already exists for a room when createModal is called, don't
return null, return the modal
2020-01-21 13:57:16 -05:00
Barış Soner Uşaklı
6a63c1a100
fix: escape system message, don't allow editing system messages
2020-01-19 22:20:43 -05:00
Barış Soner Uşaklı
ac5c560c54
feat: add action:messaging.save
2019-10-31 12:54:03 -04:00
uplift
1aa520b7a0
parseInt uid in room users check ( #7988 )
...
nodebb-write-api fails this check without parsing into an int
2019-10-22 12:07:53 -04:00
Baris Usakli
6b3eb0144e
refactor: use arrow function
2019-10-09 13:30:59 -04:00
Baris Usakli
c01b0fbd8c
fix : #7951 , don't send notification for system messages
2019-10-09 13:29:49 -04:00
Julian Lam
9b8ac89e13
fix: htmlentity instead of url encoding for room rename system message
2019-09-03 15:43:02 -04:00
Baris Usakli
27c27b497e
refactor: use arrow func
2019-08-19 11:07:59 -04:00
Julian Lam
29f96b199c
fix(style): requiring parens in block bodies
2019-08-13 15:12:27 -04:00
Julian Lam
0921230976
fix(style): updated code to follow new eslint recommendations
...
Squashed commit of the following:
commit f9ce878b26
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 80dd370e41
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 f4dd9cabb2
Author: Julian Lam <julian@nodebb.org >
Date: Tue Aug 13 11:33:05 2019 -0400
fix: resolved breaking changes from sitemap v4 upgrade
commit 9043415ee1
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 e3352b272e
Author: Renovate Bot <bot@renovateapp.com >
Date: Mon Aug 12 07:59:05 2019 +0000
fix(deps): update dependency sitemap to v4
commit 8e3c0cdcae
Author: Renovate Bot <bot@renovateapp.com >
Date: Fri Aug 9 00:49:51 2019 +0000
fix(deps): update dependency commander to v3
commit 2104449d38
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 d2937f446a
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Tue Aug 13 10:36:48 2019 -0400
feat: async/await admin/controllers
commit 1b97e8b199
Author: Misty (Bot) <deploy@nodebb.org >
Date: Tue Aug 13 09:28:39 2019 +0000
Latest translations and fallbacks
commit 69a48957a2
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Mon Aug 12 21:56:09 2019 -0400
feat: async/await
commit b9b2a7e593
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Mon Aug 12 20:58:29 2019 -0400
feat: async/await refactor
controllers/accounts
commit a8d43a1759
Author: Baris Usakli <barisusakli@gmail.com >
Date: Mon Aug 12 14:49:40 2019 -0400
feat: async/await controllers/accounts
commit 2f25aae57b
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 c9e83f2374
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Sun Aug 11 00:14:35 2019 -0400
fix: remove empty line
commit 30be91b26c
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 2e4a71c0b6
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
2019-08-13 15:12:27 -04:00
Julian Lam
756a717eb8
feat: convert src/messaging/* to async/await ( #7778 )
...
* feat: src/messaging/create.js, #7743
* feat: src/messaging/data.js, #7743
* feat: src/messaging/delete.js, #7743
* feat: src/messaging/edit.js, index.js, #7743
* fix: added in missing awaits
* feat: wrapped up src/messaging/* rewrite
* refactor: messaging delete/restore similar blocks of code
2019-07-22 11:18:13 -04:00
Julian Lam
4fb271c684
System chat messages ( #7771 )
...
* 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: #7330 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: #7743 messaging/room.js
* fix: tests for messaging/room.js, #7743
* fix: trying to fix tests
* fix: omg :rage2:
2019-07-19 12:20:11 -04:00
Julian Lam
0e8ee31b90
fix : #7601 removed check for another user when sending messages
...
This is an old check back when the sorted set that messages were
appended to depended on what users were in the chat room. Once
messages were refactored (in 2017) to use roomIds, this is no
longer a limitation of the platform and users should be free to
talk to themselves all they want.
2019-07-16 15:11:55 -04:00
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 cea206a9b8 .
* 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
2019-07-09 12:46:49 -04:00
Barış Soner Uşaklı
198d05875f
feat: cleanup, use bulk
2019-06-24 21:36:20 -04:00
Barış Soner Uşaklı
644504ff02
fix : #7483 , show latest undeleted message as teaser
2019-06-05 22:04:19 -04:00
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
2019-05-30 14:36:33 -04:00
Barış Soner Uşaklı
7ba4a864fd
fix : #7629 , new filter hook for room rename
2019-05-22 09:58:29 -04:00
Barış Soner Uşaklı
fe0f95a2b1
fix : #7085
2018-12-08 19:51:26 -05:00
Barış Soner Uşaklı
e55fb43703
fix : #7086
2018-12-08 19:36:38 -05:00
Barış Soner Uşaklı
71163421aa
fix: wrong variable #7085
2018-12-08 19:23:22 -05:00
Peter Jaszkowiak
ba619c7ec8
style(eslint): match operator-linebreak preferences
2018-11-30 13:38:59 -05:00
Barış Soner Uşaklı
e17c4b2766
uid fixes
2018-11-17 22:31:39 -05:00
Barış Soner Uşaklı
69bb3293ee
misc fixes
...
handle spider uids properly
2018-11-12 00:20:44 -05:00
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 😬
2018-11-07 15:53:14 -05:00
Barış Soner Uşaklı
fb6067a7ca
only parse if field is requested
2018-10-25 19:58:01 -04:00
Barış Soner Uşaklı
f3a679e268
remove parseInts
2018-10-25 17:02:59 -04:00
Baris Usakli
138154a71c
move modules
2018-10-23 15:03:32 -04:00
Baris Usakli
5293a6515c
fix lint
2018-10-23 14:11:59 -04:00
Baris Usakli
fdbefa3d1f
remove more parseInts
2018-10-23 13:59:28 -04:00
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
2018-10-21 16:47:51 -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
Baris Usakli
4200cff47c
closes #6662
2018-07-27 12:48:15 -04:00
Julian Lam
506467ad6f
closes #6663
2018-07-24 10:30:47 -04:00
Barış Soner Uşaklı
7df57ba7a7
remove dupe code
2018-06-01 13:12:32 -04:00