Commit Graph

8516 Commits (eedc0889fc1b4b3a42c49aae996a770b3ab6f7e4)

Author SHA1 Message Date
Julian Lam a7aaf8ea96 fixing bug that caused plugin language files to not be parsed
Julian Lam fcec6fd41d Merge remote-tracking branch 'origin/master' into develop
barisusakli 0b95eab71e use roomName if availabe in taskbar
if room is renamed update title on taskbar
Stephan 374bc04cdb fixed missing translation string
Stephan af4df8e197 added missing translation
added missing language string in dashboard.js
Peter Jaszkowiak 001aa3d1a8 Fix tests, npm Windows fixes
Peter Jaszkowiak 186209a0a3 Build plugin `staticDirs`
- route `/plugins` -> `build/public/plugins`
- symlink `staticDirs` directories into `build/public/plugins`
- remove custom `/plugins` route handling
Peter Jaszkowiak df77890c2a Plugin `defaultLang` defaults to `en-GB`
Julian Lam 73879b824c Merge branch 'master' into develop
Peter Jaszkowiak 7c88a55153 Fix empty lines in language selectors
Julian Lam 339845ff6b Merge pull request from pitaj/build-translations
Compile translations in the build step
Julian Lam 76376f52c3 Merge remote-tracking branch 'origin/master' into develop
barisusakli ef72762ba7 use groups.isMemberOfGroups
Peter Jaszkowiak 7f2ded17ab Comments, misc
Barış Soner Uşaklı bcd2b5cc50 Merge pull request from pichalite/post_create
Send isMain to post.save filters
pichalite 9176f7e037 Only send isMain to hook instead of saving to post hash
Julian Lam 48909e753c Merge branch 'master' into develop
Julian Lam 06a77143bd additional logging and removing interstitial session data if plugins don't return interstitials
Peter Jaszkowiak 65b866192e Fix failing tests
pichalite a3c05b2ea4 Send isMain to post.save filters
Peter Jaszkowiak aff53cccc5 Plugin language fallback support
Julian Lam 183fdf06cb Merge pull request from DomLennonZA/master
Adding more specific timings for session timeout
Dominic Lennon 3f116e7636 Fixing null ttl issue for MongoSession
Dominic Lennon b1f0f8fa8b Adding ttl value to the MongoStore options
Dominic Lennon 3507e4ce0e Adding closing <p>
Dominic Lennon a06e39528f Code review change
Peter Jaszkowiak 8c86b2e32c Build pipeline improvements
- Refactor meta/css
- `fs.link` usage consolidated to `file.link`
- rimraf built modules directory to fix error
- Remove `local-assets` flag
kingjan1999 cbe8807ebd update fontawesome.tpl
Peter Jaszkowiak 05b68391dd Use `/assets` for client assets
- Route `/assets` -> `build/public`, falling back on `public`
- Moved destinations for `nodebb.min.js`, `acp.min.js`, `admin.css`, `stylesheet.css`, `templates`, and `sounds` to `build/public`
- r.js modules previously routed through express are now symlinked into `public/build/src/modules`
- minfiles no longer served from a memory cache
- use config `views_dir` setting everywhere template directory is used
- fix cache buster `v=v=`
Peter Jaszkowiak e1a29f4aa8 Switch to `assets` route
Peter Jaszkowiak b4b3be3d97 Cache bust translations, query param name
Peter Jaszkowiak c97764ee6f Fix incomplete "group" search results
Peter Jaszkowiak 2f07c18c5a All hail the glorious translation prebuilding
Julian Lam 9dcbe875a0 Merge branch 'master' into develop
Julian Lam c99321a518 always setting app.previousUrl now, and passing cid into filter:category.topics.get hook
barisusakli 8f0f959d53 add `filter:categories.copyPrivilegesFrom`
https://github.com/Schamper/nodebb-plugin-poll/issues/77
Julian Lam 2a9088d571 updating checkGlobalPrivacySettings middleware to hook into write-api for auth
Julian Lam 10f270d016 adding byPid zset for flags
Julian Lam bef3da5b48 pass flagId into flag.update hook
Julian Lam 6c04e393b5 fire hooks for flag update
barisusakli 8f916343f0 closes
barisusakli 938022a0f7 add postData to action:post.delete, closes
barisusakli 274448426d helpers.setupAdminPageRoute
barisusakli 1e137636c9 closes
Julian Lam d29361f4c9 added additional visibility masks for profile menu hook, also added isPrivileged user method, closes
Julian Lam 8eb47e1987 added back missing next(), @baris
Julian Lam bbc02dcc5d lol wtf
Julian Lam a13c6f8c65 adding a safeguard into flags upgrade script @baris
barisusakli 367078056e add hook
barisusakli 0c8aa599a0 closes
Dominic Lennon 04e5707143 Fixing lint issues
barisusakli 37bb6e9b6d action:user.removeUploadedPicture
Dominic Lennon ed19454eca Adding more specific timing for session timings
barisusakli dd9e286633 closes
barisusakli 1e9fabc5db closes
barisusakli 611be77361 closes
Dominic Lennon d248ef95cd Fix for issue . SessionStore now uses the correct value
barisusakli cc96e32970 closes
Julian Lam 43056a4bfa Merge branch 'master' into develop
Peter Jaszkowiak ffa2bd14f8 Fix reverse proxies breaking admin translations
barisusakli c0a8fd7395 allow multiple tags
Julian Lam 81ca10d72e Merge pull request from pitaj/async@2
async v2 upgrade
Julian Lam 3861b2dd80 Merge remote-tracking branch 'origin/master' into develop
Julian Lam 541f51e947 restrict flags interface so that moderators only see flags from cids they can actually moderate
barisusakli ba1889f441 messaging refactor
barisusakli 6b2dde02b5 closes
Peter Jaszkowiak 11f7cc4163 Pass tests
Peter Jaszkowiak ec544518e8 Use async v2
Barış Soner Uşaklı a08474a9fd Merge pull request from pichalite/issue-5317
Let global mods change user avatar
pichalite 8a68e1d918 Delete cover position data when cover photo is deleted
pichalite ab797b91a4 Let global mods change user avatar
Julian Lam 05fdd35818 removed menu item for flags management in ACP
Julian Lam 277f447f3e fix minSchemaDate in upgrade.js
Julian Lam 3ea927fa65 fix minSchemaDate in upgrade.js
Julian Lam db20df0110 Merge branch 'master' into develop
Barış Soner Uşaklı f225fc3e3d closes
barisusakli 190b3759a0 fix tests
barisusakli a112655bd2 fix missing ;
barisusakli 4943832dd8 fix dupe code
barisusakli 306687ccaa remove old upgrade code
barisusakli e48f1dac2a move bookmarks
barisusakli c927eb15d7 fix requires
barisusakli c36e2aa13d refactor app.js/start
barisusakli e1253f693a fix redis union
barisusakli b71ab64cf4 organize dbal sorted code
barisusakli 476ec6e4ee closes
psychobunny 66d8c29d25 use different path for installer files
Julian Lam 29c7ae7645 Merge remote-tracking branch 'origin/master' into develop
barisusakli f505b47ac9 prevent crash if topic is not found
Barış Soner Uşaklı c4d4d2385b closes closes
Barış Soner Uşaklı 805cacb2af dont add tid to :tids:posts if its pinned
psychobunny 29cf6f528c no need to check for logged in status in ACP
Barış Soner Uşaklı 1b6d718dab closes
barisusakli a1af59def3 add missing return, fix tests
Julian Lam c640bdf2b9 Merge branch 'master' into develop
barisusakli 988c485874 post tools test
barisusakli f8d958e065 rooms.getAll test
Julian Lam 926186108b ACP Translations
Peter Jaszkowiak daf3ab4db4 WIP
Peter Jaszkowiak 038c45f4b6 `admin/manage` translations, misc
- Translate Manage templates and JS
- Change `translator.translate -> .html` into `.translateHtml` where fitting
- Translate `admin/partials/download_plugin_item`
Peter Jaszkowiak 94eb74646c `admin/manage/categories` translations
- Fix privilege table headers so bottom borders align
- Fix `/admin` route to show Dashboard title correctly
- Translate ACP category management and privileges templates
- Translate ACP category management JS
- Remove unnecessary translates in JS
- Fix bootbox wrapper to work with translations containing html
Peter Jaszkowiak 862908d0eb ACP search and title improvements
- Search uses translated titles if available
- Use `advanced` for `development` route titles
- Remove route title from showing up in results
- Highlight matching part of result title
- Don't show empty result contents when only title is matched
Peter Jaszkowiak 3008794797 `admin/general` JS translations and misc
Peter Jaszkowiak 95bef8f3f6 `admin/extend` JS translations and misc
Peter Jaszkowiak 38eba81933 ACP menu and title translations
Peter Jaszkowiak 0b4c39338e Translation bootbox wrapper
- Replaced minfied bootbox file with unminified one since it's minified at build anyways
- Removed existing override
- Made translator more verbose in dev mode; it now warns about missing translations
Peter Jaszkowiak 20db4657b2 `admin/general` translations
Peter Jaszkowiak 3cd6a8a94b `admin/extend` translations
Peter Jaszkowiak 50aed01c57 `admin/development` translations
Peter Jaszkowiak 6c1b852d48 `admin/appearance` translations
Peter Jaszkowiak 8931702136 `admin/advanced` translations
barisusakli 9ace5c6e17 moved next() of out try/catch
barisusakli 1fed01fe43 ability to filter search by tags
Julian Lam 76bcc1c327 Merge branch 'flagging-refactor' into develop
Julian Lam 283ae564f2 removing incorrect parseInt
Julian Lam babafde726 once more for good measure!
Julian Lam 2ea63f3d42 how much fun is it to fix tests when stack traces don't work? lots. :shipit:
Julian Lam ad633aad45 additional tests and proper handling for purged flag targets,
Barış Soner Uşaklı 4ff3d06f90 escape labelColor, icon, cover:position, validate toPid
barisusakli 6a0cbadb3e closes
barisusakli 009da723c5 meta.configs tests
barisusakli 975141bc9b more tag tests
barisusakli 835669805a tag tests
barisusakli 3bd1c6c2b5 notification tests
barisusakli 55b68197aa closes
barisusakli 9d75c48236 closes closes closes
Julian Lam 0927d54c98 ability to filter flags by cid, , more tests
Julian Lam ebffc44600 fix tests,
Julian Lam 5e109bb4a8 Merge remote-tracking branch 'origin/master' into flagging-refactor
barisusakli e17b37edb6 closes
Julian Lam e6768ab572 some more fixes to flags, simplifying qs manipulation in flags search
re: 
Julian Lam e028ac1363 passing in arguments to npm instead of command string, closes
xucheng 40d73e2a54 fix ajax 404 err when base url isn't root ()
barisusakli 9e52d5ec04 new hook, action:user.delete
Julian Lam 831c2064a0 For , added tests and returning flag data on socket flag creation
Julian Lam 451c2838d0 Merge remote-tracking branch 'origin/master' into flagging-refactor
Julian Lam 0196997099 fixing issues as found by @barisusakli
re:  and 
barisusakli fba28791f5 missing ;
barisusakli c32e6aaabb use build module instead of forking
barisusakli 53fe432d8a fix hook
barisusakli 97c0b33cf6 filter:middleware.render
barisusakli e86708cb0c add cid to widgets.render
init date pickers in widgets ACP
barisusakli 82d3b24cd3 Merge branch 'master' of https://github.com/NodeBB/NodeBB
barisusakli 35a15f37ec closes
Barış Soner Uşaklı 1f52048866 Merge pull request from Fusselwurm/patch-2
ZSET scores are float: parseInt => parseFloat
Anil Mandepudi aea08d58b1 Fix tabs
pichalite 0a4e45c0da Check password length on setup
Julian Lam e227f5842a Merge remote-tracking branch 'origin/master' into flagging-refactor
Moritz Schmidt c8393d6f87 mongo: set scores as float instead of int
barisusakli 1c6cee207f meta/settings test
barisusakli 9627e53922 change group membership methods
Julian Lam dc508fa0cb Merge remote-tracking branch 'origin/master' into flagging-refactor
Julian Lam 4753042306 lowered analytics disk writes to every ten seconds, because why every 10 minutes? :shipit:
Julian Lam 9ada35cfb9 allowing Analytics.increment to have a callback
Julian Lam ebc9abd773 upgrade script and graphs for
barisusakli 0b9829850c closes
Barış Soner Uşaklı e0501656b6 parallel startup
Barış Soner Uşaklı bca6151892 fix lint
Barış Soner Uşaklı 8c8e2ae190 closes
Julian Lam 5d63c0aa3b Merge remote-tracking branch 'origin/master' into flagging-refactor
Julian Lam acf2e4078b fixes
Julian Lam 31996f9377 added page titles
Julian Lam 6533fa066d removed unneeded fixes
Julian Lam e40eb75f8f change history saving to append an object not a serialised array,
Julian Lam a5fb4825b4 deprecating old hook for
Julian Lam 5dd892bd01 a bunch of changes here... allowing user profiles to be flagged,
barisusakli 78b7d5896c convert topic title to string
barisusakli 74b9f1a016 closes
psychobunny 6b7b51eaf0 Merge pull request from pitaj/master
ACP search updated to support translations
Julian Lam 9f9051026b more work on
Peter Jaszkowiak f1cfed50a1 Translate skins and themes fully
Peter Jaszkowiak 9fd64549a3 Use async instead of Promises
Julian Lam cd3002e812 removed user flag reset method and associated socket call from ACP
Julian Lam 88958049eb added some more filters, and appending event to history on flag creation
issue 
Julian Lam 8e1d441e20 Added some quick filters,
Julian Lam b7217e8841 Merge remote-tracking branch 'origin/master' into flagging-refactor
Julian Lam ad732935fb closes
barisusakli cbd6853ccb notif controller test
barisusakli 7d47f4b067 tag tests
Moritz Schmidt e8e33a8a23 ZSET scores are float: parseInt => parseFloat
In Redis, scores of sorted sets can be floats – so we should use `parseFloat` instead of `parseInt` when converting from string to number.
Should not lead to  again, as `new Date()` works regardless of whether it's being passed a float or integer.
Julian Lam 753d4b0275 wrapped up basic functionality of list and detail for flags, filter support.
Julian Lam 9129597811 some tweaks to flag history saving
Julian Lam 169defd194 , update flag history to save new value
Julian Lam 0724bee6c6 removed deprecated dismiss methods
Julian Lam 20fa8ebf76 simplified flags.get a tad
Julian Lam dde3d2b135 Merge remote-tracking branch 'origin/master' into flagging-refactor
Julian Lam 33ff5e09bb updated revoke session middleware to allow self or admin or global mod invocation, tweaked tests a bit
Julian Lam 23cdeeb344 linting :shipit:
Julian Lam a1b49a98e7 locking down session deletion route to admins and global mods only
barisusakli 69b766bbc8 more tests
barisusakli 1440139903 more tests
barisusakli 091f459f5e search socket test
barisusakli 4b6e4f085d more tests
group cover upload tests
registration approval queue tests
Julian Lam c36fe3389e Merge remote-tracking branch 'origin/master' into flagging-refactor
Julian Lam f1d144f15e history appending, finished up notes,
psychobunny bcb3903446 priv table headers
Peter Jaszkowiak 5223bb5191 Merge branch 'master' of github.com:nodebb/nodebb
Julian Lam d9d60c20bd flag updating and note appending,
Julian Lam 709a7ff7f0 fixed issue with getUsersData not actually returning the same number of elements as was passed-in
barisusakli fb42b83e1b remove hardcoded value @pichalite
barisusakli 7f90e31a38 more socket user tests
barisusakli c3980d0c2e follow tests
barisusakli 5cf8006640 fix style
Julian Lam 888c120e08 removed some unneeded methods for
Julian Lam c5b9c1e2a4 Merge remote-tracking branch 'origin/master' into flagging-refactor
Julian Lam e9ff605a20 some more tests for
barisusakli 9ba93d8be9 group search tests
barisusakli ea007e2da4 closes
barisusakli d6c2779ed0 remove placeholder
Julian Lam c5c2d27180 flag assignees, state, notes WIP,
barisusakli 02aadf79b5 account/posts controller tests
barisusakli 4cb48c46ab closes
Julian Lam fceb5cc86b more work on flags detail pages ()
Julian Lam 0bf82c0e47 Merge branch 'master' into flagging-refactor
barisusakli f8caed95db don't crash if plugin doesnt set defaultLang
barisusakli afef79a81e closes
Peter Jaszkowiak 77e58f31c5 Fixes, passes tests
Peter Jaszkowiak fd4d53e42c Remove unnecesary admin search indexing
Peter Jaszkowiak de6ced4e07 Tests for admin search, simplifications
Peter Jaszkowiak e3dd68e19c Explanations and simplifications
Peter Jaszkowiak a431dc0305 ACP search updated to support translations
barisusakli 49267d54b7 topics unread tests
barisusakli 444da3c9ec closes
barisusakli 57c8e3e61c fix update privacy
barisusakli dff4ee767c more group tests
barisusakli d8a1e98a43 fix permalinks on pagination
Julian Lam 9f7c4befea omg tests (), and .create returns flag data now
Julian Lam 98a104564b some light refactoring, details API ()
Julian Lam 640df0379e flag list page ()
Julian Lam 106502952a fixed crash in flags page for now
Julian Lam 1aa70c57eb WIP
barisusakli aa69481a0c dont mark chat notifications read if you are not in the room
barisusakli c33d3e874a store pinned topics in new zset
keep pinned topics on top on different sort types
barisusakli d4638ffc15 fix test dont turn single pages into ...
Barış Soner Uşaklı dde32744b7 change pagination so its similar to GH
barisusakli 1c3d9f7e94 switch to createIndex
barisusakli b807915515 removed incorrect markread nid
barisusakli 4b815449f1 closes
barisusakli d3fff28de5 use base_dir
barisusakli 31168c669b closes
barisusakli 6beacdb80c fix headers for new installs
encodeURI(undefined) === "undefined"
barisusakli 12d46ca441 remove async.series
Julian Lam ffbebc646a linting
Julian Lam b7fa8c1db1 fixes
Peter Jaszkowiak c5237443cd Standard language codes ()
* Use standard language codes. Fallback for plugins.

* Fix transifex config

* Tab vs space here for some reason

* Remove redundancies

* config.relative_path instead of allcaps

* added upgrade script for existing users' accounts
Julian Lam cafbdfd83e fixes
barisusakli 4ff71f6b0b allow two sections
barisusakli 5d6e2ad083 multiple test fixes
barisusakli 17f8afd0dc closes
barisusakli f754c8b7df digest test
barisusakli d2fa0c3e6a vote socket tests
barisusakli 1658ebbe20 categories update test
barisusakli f7b77c5341 removed file.exists from getFromFile
barisusakli 259d49e392 all procs should load the js from file
barisusakli cecb4c0403 some more group tests
barisusakli 584cfd09ef suggested topics test
barisusakli 069a90e792 move maintenance mode
barisusakli 38bc8ad5ae maintenance tests
Julian Lam 5916530a35 fix topic creation regression caused by 576df84218
Julian Lam f0936fcafb fixes
barisusakli dcb6773782
Julian Lam 576df84218 trimming composer input before doing length check in replies
barisusakli b49af0a135
adjust pagination so each page shows `postsPerPage` posts
barisusakli db14c29e41 socket.io/categories tests
barisusakli 6acc79ec07 convert title to string
barisusakli 2c77a88ba4 closes
barisusakli 51b41a9b44 fix eslint
barisusakli 5d4903f643 fix test
Julian Lam 6acbd3ea21 optimising build step for
barisusakli ef87a2b7d7 closes
Julian Lam 0e8bf17ff0 re: , bringing back the RELOAD BUTTON :rage2:
barisusakli a3efe42938 fix test
barisusakli dada858565 add canReply to messages
barisusakli 83c50f0648 add back emitter
barisusakli 9796f54580 analytics tests, reduce bcrypt rouds for tests
barisusakli e3616ab0f9 socket/meta test
barisusakli 853cea7fec removed emitter.js
barisusakli 5e7fb4eeb2 widget tests
barisusakli 50a2a7abbe plugins/install tests
barisusakli f1a933210b notifications.pushGroups
Barış Soner Uşaklı 42aa4fb67b Merge pull request from stuwil/fix-relative-path-login-redirect
Replace only base URL in login return URL, fixes 
Julian Lam 9bab0b53b0 re: , broke out meta.css.minify to accept targets, made build output marginally nicer looking
Julian Lam 232b387652 set up plugins in build step as well
Julian Lam b1f23c8c4b read req.uid instead of req.user.uid in admin groups list
barisusakli 71c7ef9109 fix test
barisusakli 4f0e93732a
remove passing js/css between procs
Julian Lam 299fcb99f1 more progress on
Stuart Williams f92758c764 Replace only base URL in login redirect URL, fixes
barisusakli f2e4d9ce53 change flag tests so they use socket methods as well
Stuart Williams a20027d8f5 Add missing relative path to Admin tags and widgets links
barisusakli 3380f61985 more tests
barisusakli 2476ab3684 closes
Julian Lam 2f2eb1457d auto-redirect to SSO flow should work in subfolders too
Julian Lam ede7a71db7 Fixes
On socket.io connection, all clients join a room pertaining to
their express session id. We use this room to keep track of any
sessions in different browser windows (but the same cookie jar),
so if a login/logout occurs, we can throw a session mismatch
modal.

This room can also be used to emit messages across windows/tabs...
Julian Lam 7d523fae0f closes
barisusakli ee75c69817 post edit tests
barisusakli 1a9dd2311c closes
Ben Lubar e151916f1a
Fix followed topic notifications going to the last unread post
Regression introduced in 1b34ebe230.

Bug originally reported in .
Julian Lam e6c9c89342 closes
barisusakli 1e543dd394 fix profile views on redis
barisusakli 8294fc90e3 closes
barisusakli ce9be7e694 closes
barisusakli 1b34ebe230 closes
barisusakli c1d28af2a7 filter posts that you cant read
Barış Soner Uşaklı 43bcd453dd Merge pull request from BenLubar/replies-permissions
Check whether the user can read the replies
pichalite 9bcb5710c1 UI fixes for ACP -> Manage -> Registration Queue
pichalite 0087a672ba UI fixes for ACP -> Manage -> Users
Barış Soner Uşaklı b38a10f96a add pagination to user profile
Ben Lubar 5937fefa39
Check whether the user can read the replies and allow filtering the reply count in plugins
barisusakli ecef0c6ad5 more user tests
barisusakli d23966c534 more tests
barisusakli 3ec760ac85 inf scroll tests for topics
barisusakli ce7513c347 allow cookieDomain from config.json
barisusakli f30b694545 gitInfo error doesnt block page
barisusakli 01e7b864b8 change batch.js style
barisusakli 5cfe379841 fix recent for inf scroll
barisusakli 556dfa51d9 fix pagination querystring on /recent
barisusakli f8ae7b069c cid filter
barisusakli 58fff8b0af up persona fix test
barisusakli fb47bf3889 unread/recent changes closes
Anil Mandepudi 6b23dd574e Use postcss-clean to minify css instead of less ()
* use postcss-clean to minify css instead of less

* alphabetical order

* white space

* white space

* Update css.js
Ben Lubar 2185d8eb99 Ban UI fixes ()
- Permanent bans assigned by global moderators no longer expire immediately
  (does not apply retroactively)
- Bans with no reason given no longer have "undefined" as their reason
  (applies retroactively)
- 0 is now a selectable value for "ban duration, select 0 for permanent"
Anil Mandepudi f7b64d655a Fix issue where CSS files imported along with less files are not getting minified ()
Barış Soner Uşaklı af3b6e2759 Merge pull request from pitaj/is-main
isMain on topic.create for filter:post.create
Julian Lam 7993f6a4d8 fix duplicate labels in cookies ACP template
Peter Jaszkowiak 91a28e98b7 isMain on topic.create for filter:post.create
barisusakli eca850c4b1 nested reply improvements
on new post increase count and add nested reply if replies are expanded
on post purge reduce count and remove nested reply
barisusakli 96d05b58d4 show deleted replies like regular deleted posts
Julian Lam 66aea0eed1 closes
barisusakli a4dfe608e9 ban tests, user/info test
barisusakli 218a1b7aab closes
Julian Lam 663f05b972 adding back banReason to header rendering, as it regressed in 1f10e0b
barisusakli 7a8de6169b admin controller tests
barisusakli ff08cbf677 replies to posts
Barış Soner Uşaklı 0c08e44a34 Merge pull request from BenLubar/replies-to-post
Add a sorted set for replies-to-this-post
Julian Lam 1f10e0b287 fixed
Barış Soner Uşaklı 4668acaf36 Merge pull request from BenLubar/plugin-registration-approval-queue
Allow plugins to affect whether a registration goes into the queue
Barış Soner Uşaklı 2214a4d156 Merge pull request from yariplus/cflags
flag tests
yariplus 179b66d74a flag tests
Ben Lubar d4774e98b4
remove unused functions added in this pull request
Ben Lubar ea10f51f2e
UI for replies-to-post (needs theme update)
Ben Lubar a654a2a5fe
Work around MongoDB bug (see https://github.com/NodeBB/NodeBB/pull/5050#issuecomment-256766439)
Ben Lubar 69ee813d3e
fix typoed variable name
Julian Lam f97f45a138 logic to show a modal to banned users when they try to log in via SSO
Ben Lubar 123c66e3ec Cache the number of replies in the post object. See .
https://github.com/NodeBB/NodeBB/pull/5050#pullrequestreview-4248269
Ben Lubar 5d66811213 Include reply count with posts in topics
Ben Lubar fae28ed3cc Add an index for going from a post to its replies
Ben Lubar 2161f0d473
Allow plugins to affect whether a registration goes into the queue
barisusakli 777914b762 more api tests
barisusakli 687cce6089 closes
barisusakli 2d10490ca3 more plugin tests
Anil Mandepudi 619ca48403 remove shims for IE8 ()
barisusakli d8a9df74d7 fix wrong error returns, more tests
barisusakli 553ee7dcdd more chat tests
Julian Lam 4b5c98fb21 fix broken ACP login, closes
Julian Lam 0590a4f2cf closes
Sergii Paryzhskyi e515b791da Fix eslint rules ()
* Fix semi linter rule

* Fix semi-spacing linter rule

* Fix no-undef-init linter rule

* Fix space-before-blocks linter rule
Julian Lam 727710fbd9 using middleware.authenticate for chat route instead of ensureLoggedIn
barisusakli c8b5c181ff fix flag on redis
check if number is returned on tests
barisusakli a995afbfe0 fix style
Julian Lam 2463e85c0d allowing moderators access to the account info page
barisusakli b44f3f4811 closes
barisusakli 2c65b2ecf3 closes
Barış Soner Uşaklı 4859e499e4 filter falsy events first
Barış Soner Uşaklı 92c58cc62f Merge pull request from bdharrington7/bugfix/undefined_events
Filter out any undefined events
barisusakli bcdd7b12f0 closes
Julian Lam 1abef16cd9 fixes
Barış Soner Uşaklı 041022db63
dont crash if res.locals.config is undefined
Barış Soner Uşaklı 4e5d120763 closes
Barış Soner Uşaklı cbd936c547 closes
Julian Lam bf276d5147 fixes
Julian Lam 02998669c3 introducing option to disable chat message editing/deletion
Julian Lam d4d3fa3102 add warning about gmail routing
barisusakli b1773ad51d add new hook to add more fields to csv download
barisusakli 8c7de0f239 fix eslint
barisusakli 1e486875f4 add top posters and most rep to acp
bdharrington7 6dba11957e Filter out any undefined events
barisusakli f0f3a86908 closes
write more messaging tests
barisusakli 9131f9d8f6 controller tests
Barış Soner Uşaklı c512a02c83 Merge pull request from yariplus/lexistuff
Add additional lexical dbal operations.
yariplus af2122bdb9 fix lex tests maybe
barisusakli 4a0f67afdc search tests
new method emptydb
use emptydb instead of flushdb, flushdb  removes indices for mongo which
breaks search tests
initialize meta.config properly in tests
enable nodebb-plugin-dbsearch for tests
yariplus 472dd007d8 fix mongo lex callback
barisusakli cd71eb909d closes
barisusakli 5cd2da4309 Merge branch 'master' of https://github.com/NodeBB/NodeBB
barisusakli c972a339e6 fix value
barisusakli 862678eefe encodeURIComponent header values
Julian Lam 4ceb8914e9 adding email sent tally to digest output
Barış Soner Uşaklı 54a24f8dbd Merge pull request from yariplus/patch-14
Add oldTitle to topic edit hook
yariplus be3b35dea3 fix callbacks and regex
yariplus 1bb44e2429 Allow lex min and max to be inclusive or exclusive.
yariplus 437d2744cc addl lex commands for mongo
yariplus ef20757f3e zremrangebylex, zlexcount
barisusakli 1a63672e66 more test fixes
yariplus 1fc5e5d0d3 getSortedSetRevRangeByLex
Timothy Fike cfa5974515 Add oldTitle to topic edit hook
barisusakli 817cd29f00 try require from root
barisusakli 12f366f4b4 more tests
register/login/logout tests
ability to test socket.io emits for logged in users
barisusakli b8a3ca98cb added callback to webserver.listen
wait for webserver to be ready to run tests
added topic restore test
added test to load topic via controller
barisusakli e462fadd94 init express/webserver for tests
barisusakli 6d97c4cec8 up mongo deps, create session store after db.authenticate
barisusakli bfcef27c47 plugin tests
barisusakli c0db7798b9 fix tests :dull:
barisusakli 235fe9efe3 fix chat modal title
barisusakli 3270f39db0 closes
barisusakli dd077117a2 refactor user.updateProfile and write test
barisusakli 139360ce18 if chat is restricted dont allow adding to room
barisusakli b32d7b86e8 fix isModeratorOfAnyCategory
returns true/false now instead of an array
new method getModeratedCids returns an array of moderated cids
Julian Lam 3272c0b98c linting
Julian Lam 7ba76fc0b6 showing assignee avatar in flags list
Julian Lam ead4de6c6f Merge branch 'fix-some-code-lint' of https://github.com/HeeL/NodeBB into HeeL-fix-some-code-lint
Julian Lam eb16eb318e exposing links to moderator tools pages in user logged-in dropdown, closes
Julian Lam e80400665e closes
barisusakli 5f16205d15 closes
HeeL 4a3c31b2dc Fix space-before-function-paren linter rule
HeeL 3fa1c1f927 Fix space-infix-ops linter rule
HeeL 9a0d764bbd Fix wrap-iife linter rule
barisusakli caf30b5580 use post
barisusakli 460ac17eaa closes
addm upvotes, downvotes and votes to getPostSummary
barisusakli 2eec1afc46 fix upgrade script so it only runs once
Julian Lam 4f159acf56 fixes
barisusakli 58810aa063 only delete priv groups if they are empty
barisusakli 59d035376b closes
barisusakli eb174739ee closes
barisusakli dd7839b7f5 add admin next to username
barisusakli 038418bf87 batch.processArray
use batch.processArray in notifications.push and moveRecentReplies
added notification tests
added test for moveRecentReplies
clear group cache if a group is deleted
Barış Soner Uşaklı 5dbcd9cf3f pass string to validator
barisusakli 848065c820 remove empty fields from new posts
barisusakli 6f86621e30 closes
barisusakli 9a55498fc1 changes to manage/users
barisusakli 0614957542 use req.app.render
barisusakli 102beb5f93 closes
barisusakli 3275d26590 removed comments
Barış Soner Uşaklı 4d5df7547e Merge pull request from bambusoideae/master
Fix: Memory leak & connection flood when access /admin/advanced/database
Nguyen Trung Quan 279559ff97 Fix: Memory leak & connection flood when access /admin/advanced/database
Julian Lam d1721303ab fixes , fixes
Julian Lam 597e375463 update state on new flag so action history is appended
Julian Lam 80fe6bde5d removed 'No Assignee' option, updated flag saving logic
barisusakli b92f455cc1 group cleanup
barisusakli 98fff29869 closes
Barış Soner Uşaklı f1e6ccdbfc remove dupe header
Barış Soner Uşaklı 9d0dc35703 closes
barisusakli aca0a893e7 remove since properly
barisusakli a254222911 if user is already part of group skip instead of error
barisusakli fe50c8d124 closes
barisusakli 128ef884bf
barisusakli a93ee97926 closes
Barış Soner Uşaklı 3a50c46572 Merge pull request from BenLubar/page-removed-from-url
Include page number in redirected topics
barisusakli 6aec61d722 groupChat on recentChats
barisusakli 15409f92cd escape history data, hide moderation note in api
Barış Soner Uşaklı 1b5287803c closes
barisusakli abd99760e5 closes
Barış Soner Uşaklı a325a85a84 fix mass group invite
barisusakli 4eb8015017 closes
Barış Soner Uşaklı be07772a91 check for e11000
barisusakli 67f137149d fix validator
barisusakli 922f1587e7 closes
barisusakli 0d09fcbee7 fix setAdd on redis for empty arrays
Jorge Meireles 4938b00635 Fix language path ()
Barış Soner Uşaklı a3e1c847b9 fix wrong callback
Barış Soner Uşaklı ad2b44220d escape event data
Barış Soner Uşaklı e2cbc8bc69 fix timeago on acp users
Barış Soner Uşaklı 1eddf4c720 closes
Barış Soner Uşaklı 72775831d9 Merge pull request from pichalite/patch-1
Fix [socket.io] Unrecognized message: admin.reload
barisusakli 9f2533b5ba closes
Anil Mandepudi c50486b47d Fix [socket.io] Unrecognized message: admin.reload
barisusakli 2704727caf fix /unread
barisusakli 6540b07ab2 closes
barisusakli f464966817 closes
barisusakli 42a8346d2d closes
barisusakli 8326846c2f closes
barisusakli 5746341099 closes
barisusakli cd9e2d17a3 fix db.incrObjectFieldBy for mongo
convert string to int
barisusakli d1989babf5 closes
barisusakli a6c3be0bb1 store category recent tids for faster retrieval
barisusakli 9256c8332a get raw values for status and lastonline
barisusakli 13e624cc86 on login update lastonline
barisusakli 15cae8d6ea ability to set moderation note on users
barisusakli d60ab3c74c removed cacheStaticFiles
barisusakli b0b6c66f77 fix unix domain socket
barisusakli 4b3b123cd0 closes
barisusakli 55396ca442 inf scroll in chat-content
barisusakli 4be20799ec fix getRecentChats
barisusakli 202edfa47e chat history access
barisusakli 598c47b77f fix user icon in notifications
barisusakli 4ce8e2224a optimize topics.markTopicNotificationsRead
let's not call it once for each tid
barisusakli 877820779c optimize notifications.getMultiple
Barış Soner Uşaklı 0452e9cfa4 dont need last step
barisusakli 958fe3e72f closes
barisusakli 2ac3f5e392 closes
barisusakli d7c559a209 moved active users up
barisusakli 1a5e079919 closes
barisusakli 2e6fc4d045 filterPidsByCid
barisusakli 2c140c2107 ability to filter flags by category
barisusakli 990ecc8cd2 sortedSetIntersectionCard
Julian Lam 172702565e show username and email history
Barış Soner Uşaklı 11b5a1f426 simplify map
psychobunny cecdd205cd Merge pull request from phit/mixed-content
Fix mixed content warning on 503 status page and installer
barisusakli 86b616ab9e removed unnecessary waterfall
barisusakli 89596b81e0 style
barisusakli 72c75bd781 add pagination to flags page
barisusakli dd78f46980 1 more tag change
barisusakli c98b6b7630 tag changes
barisusakli ef5e02534a fix missing translator, add flag reason
phit 2342d59e6f fix mixed content warning on 503 status page and installer
barisusakli dc317d61b6 add missing next
barisusakli 8bffabeee4 merge
barisusakli f46755759a show categories in unread as tree
Julian Lam 4897e861fb handling errors :rage2:
Julian Lam b12607b1de added uid to flag history, fixed loading on IS, worked around tjs bug
Julian Lam 4e6b2555d0 moved flag history expansion to its own method, showing usernames in assignee history event
Julian Lam d04a10225c WIP showing updated flag data, history, updating flag data
Julian Lam 8dc57cba58 allowing updating of flag data
Julian Lam 7d53b778de WIP extending flags management interface with new options for state, assignee, notes, etc
barisusakli 447fc26b9a fix styling issue on reqister queue
barisusakli 07852862f5 improve helpers.isUserAllowedTo
ability to pass in an array of privileges and a single cid
Ben Lubar 7d90a94261 Include page number in redirected topics
barisusakli a42d8c5be2 simplify keys
barisusakli fcbdfa5688 remove post cache dump
barisusakli 1364fb94bf show debug info
barisusakli d621b120b0 fix groups
barisusakli 282ac56bf6 adde expose methods back
used by plugins
barisusakli fac68d52f6 cache group membership methods
groups.isMember
groups.isMembers
groups.isMemberOfGroups
clear cache for user on group.join & group.leave
barisusakli 599ac80f3d use array.find
barisusakli 9c1b1acc5b removed unsused requires
barisusakli ae8b9c3683 closes
barisusakli aefba6e2b1 removed some methods
helpers.getBaseUser
exposeUid, exposeGroupName
barisusakli becacdefb0 new hooks to customize registration queue with custom data
psychobunny 5d28dbb0a4 closes
Peter Jaszkowiak 59ed13b581 Rewrite translator for efficiency and clarity ()
* Rewrite translator for efficiency and clarity

* Fixed failing tests

* Gorram tabs

* Move cache to Translator class, simplify creation

* Documentation and linting

* Use new translator API where it makes sense

* Revert 499fbe21fdd5b7f2735a27e76a300f69039cfbd3 (except translator.d.ts)

* promise polyfill for node<4

* Set `load` on the prototype

* Comment on Translator#translate

* Delete translator.d.ts

* Support translations added by plugins
barisusakli 478da29423 closes
barisusakli 7b7ec77f5c remove console.log
barisusakli e1263f1057 sortedSetUnionCard
barisusakli 77c549081c remove unused clearRequireCache, closes
barisusakli eabb745116 change union to match intersect
accept aggregate and withscores
barisusakli 8d897d8dcf autocompleteTags
barisusakli fdf2cb6f81 stop searching after finding 20
barisusakli d0a94cb86c filter:topics.searchTags
barisusakli d4c512cb3f handle the case where the object is not set at all
barisusakli 3c0a28d293
fix extra key
barisusakli 7269d45e84 closes
barisusakli 46d2168918 closes
barisusakli 3cf4449020 use eachSeries
barisusakli 3cdfd22a65 on user delete remove their uid from digests
Julian Lam 4410385e8f Merge pull request from phit/patch-1
Use mousetrap.js minified version
barisusakli 38b17c6157 closes
barisusakli c01a2bfa33 default sounds to off, show correct setting in user settings page
Mathias Schreck fef9ec7ad6 Fix unhandled callback errors
phit 00a06e9253 Use mousetrap.js minified version
didn't see a reason it shouldn't use the minified version
barisusakli de0f4a959a fix group page permissions for global mods