Commit Graph

10164 Commits

Author SHA1 Message Date
Julian Lam
aee47b299a feat: awaitable websockets (#7645)
* feat: awaitable websockets

Adding in conditionals to check the method to call, and handling
it as a promise vs. a regular function depending on whether the
method itself is an asynchronous function.

* fix: switch to .then-checking for awaitable check

* fix: proper use of .then check
2019-06-10 12:06:26 -04:00
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
2019-06-10 12:05:27 -04:00
Barış Soner Uşaklı
5fa5e999f8 Plugin metrics (#7626)
* feat: add enable/disable checkbox for plugin usage

* feat: submit plugin data to packages.nodebb.org

only submit in production mode
submit once every 24 hours
dont submit for plugins that have "private": true in plugin.json
enabled on new installs
disabled on existing installs

* fix: hash not working after first send

fix statusCode

* fix: remove url

* feat: show compatibilty

* feat: add install question for submit plugin usage
2019-06-07 14:10:44 -04:00
Barış Soner Uşaklı
644504ff02 fix: #7483, show latest undeleted message as teaser 2019-06-05 22:04:19 -04:00
Julian Lam
c7f95ccecc feat: design revamp of ACP events page (#7664)
* feat: design revamp of ACP events page

- minor UX changes
- new filter controls, filters moved to sidebar
- form usable without js
- start/end filters NOT programmed yet

* feat: events ACP limit by date and perPage

* feat: pre-fill applied filters on template render

* fix: missing translation for ACP events perPage filter

* fix: added some comments to explain setHours behaviour

* fix: stop - start + 1

* fix: socket tests

* fix: +inf, not just inf

* fix: tests, because I am an idiot
2019-06-04 17:25:09 -04:00
Barış Soner Uşaklı
4b843ba16f fix: #7567, allow invite and approval at the same time 2019-06-04 11:10:20 -04:00
Barış Soner Uşaklı
5b85ed318a fix: #7625, on group rename update nav/widget items 2019-05-31 23:17:24 -04:00
Barış Soner Uşaklı
48538b28be feat: optimize group rename
removed async.each
2019-05-31 21:44:53 -04:00
Baris Usakli
8d319e4280 fix: psql error 2019-05-31 16:37:46 -04:00
Baris Usakli
2e6b562f1e fix: try to fix psql 🐶 2019-05-31 16:14:51 -04:00
Baris Usakli
31ccc860d3 feat: allow multiple scores in sortedSetsAdd 2019-05-31 15:44:50 -04:00
Barış Soner Uşaklı
0dca13e9c2 feat: optimize copy privileges 2019-05-30 21:41:54 -04:00
Barış Soner Uşaklı
8aef689f05 fix: no need for moderate bit for global mods and admins 2019-05-30 20:12:04 -04:00
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
2019-05-30 19:30:47 -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
Baris Usakli
64679b37cc fix: #7647, fix getModeratorUids
sets.groupNames is an array that contains other arrays of groupnames so passing it to getMembersOfGroups returned wrong results when there were more than 1 element in it.
2019-05-29 15:44:33 -04:00
Julian Lam
603c526287 fix: bad usage of async requisition 2019-05-24 11:39:03 -04:00
Julian Lam
f321b426b1 fix: 7638, returnTo accidentally saved into user hash 2019-05-24 11:23:55 -04:00
Barış Soner Uşaklı
157b921e14 fix: #7634, make strip exif configurable 2019-05-23 20:38:49 -04:00
Barış Soner Uşaklı
a8409fbd49 fix: #7636, use reputation threshold for post queue 2019-05-23 20:15:08 -04:00
Baris Usakli
63e5d383d9 fix: #7623, wait for lastonline to update on /users 2019-05-23 12:23:01 -04:00
Julian Lam
80c0d579e3 fix: #7593, unable to set account password if no password set 2019-05-22 13:40:00 -04:00
Barış Soner Uşaklı
a8e6520559 fix: #7620, allow adding new fields into user objects for posts 2019-05-22 11:52:49 -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ı
7a4b68e816 fix: #7628, log email send errors 2019-05-22 09:54:56 -04:00
Barış Soner Uşaklı
f55cc66723 fix: {username} not working in notification.tpl
fix images going out of notification email
2019-05-21 22:48:50 -04:00
Barış Soner Uşaklı
3b0459a0a5 fix: do not prevent nbb from starting
if a plugin returns error for filter:auth.init
2019-05-21 21:34:42 -04:00
Julian Lam
91f0bce628 fix: #7624, default open state on stateless flags 2019-05-21 12:23:19 -04:00
Barış Soner Uşaklı
15391da51e fix: #7431, add /unread link to topic route 2019-05-18 18:14:12 -04:00
Barış Soner Uşaklı
35d10f764a fix: #7619 2019-05-18 09:16:41 -04:00
Barış Soner Uşaklı
172e688805 fix: handle missing timestamps 2019-05-16 13:09:28 -04:00
Julian Lam
b70e03a7b0 fix: broken test for meta tags on ajaxify 2019-05-16 10:51:22 -04:00
Barış Soner Uşaklı
f326f53d4f Merge branch 'master' of https://github.com/NodeBB/NodeBB 2019-05-16 10:51:02 -04:00
Barış Soner Uşaklı
15ce23da4c fix: #7613 2019-05-16 10:49:40 -04:00
Julian Lam
f552cea523 fix: #7600, removing nbsp from email CTAs (#7606)
* fix: #7600, removing nbsp from email CTAs

* fix: added right arrow to CTA button
2019-05-16 09:45:35 -04:00
Julian Lam
b32da57faf fix: #7604 shortened CTA text and added custom text for some notifs (#7605)
* fix: #7604 shortened CTA text and added custom text for some notifs

Specifically, new-reply and new-chat have different CTA text as they
do not go to the forum home like other email templates send users to.

* fix: minor optimization as suggested by @barisusakli
2019-05-16 09:43:06 -04:00
Julian Lam
a41769e61c feat: update meta tags on ajaxify (#7580), fixes #7544
* feat: wip -- refresh meta tags on ajaxify

* feat: wrapped up meta tags update on ajaxify feature

* fix: removed commented-out line

* fix: removed another commented-out line
2019-05-16 09:41:56 -04:00
Barış Soner Uşaklı
dfab231afd Copy group privs (#7610)
* feat: ability to copy a groups privileges

ability to copy a group's privileges to all categories, or children of current category

* feat: switch to dropdown

added copy from category to groups

* fix: indents
2019-05-15 20:56:23 -04:00
Julian Lam
0d86781cb5 fix: #7599 image size measurement erroring out on missing path 2019-05-13 15:54:46 -04:00
Baris Usakli
3a7e99a503 fix: tests 2019-05-10 12:59:48 -04:00
Baris Usakli
bd94fbc2b1 feat: let theme know downvoting is disabled, closes https://github.com/NodeBB/NodeBB/pull/7568
dont load downvote data if downvoting is disabled
2019-05-10 12:41:56 -04:00
Andrew Rodrigues
50260e137a fix: #7576 "Disable password changes" can be sidestepped 2019-05-09 15:51:36 -04:00
Andrew Rodrigues
e114b16d7a fix: if editing password is disabled in ACP, prevent direct access via route/socket (related: #7576) 2019-05-09 15:50:51 -04:00
Baris Usakli
cf5aeace6b feat: closes #7583 2019-05-09 14:49:38 -04:00
Baris Usakli
c9ca72d0f3 fix: #7582 2019-05-09 12:00:46 -04:00
Barış Soner Uşaklı
96cb29aab0 fix: #7461 2019-05-08 11:08:23 -04:00
Barış Soner Uşaklı
3d938e7bf8 fix: increase batch size 2019-05-03 09:48:30 -04:00
jayjay9
8945ebcb81 fix: group cover upload not working for s3 upload (#7571) 2019-05-01 09:35:47 -04:00
Baris Usakli
07e9b67e8d fix: #7565 2019-04-27 11:20:09 -04:00
Barış Soner Uşaklı
fe6d64ccbc fix: #7147 2019-04-26 12:59:01 -04:00