Commit Graph

7938 Commits (06bf631445ba2e696b151208355c3ca33e1f5204)

Author SHA1 Message Date
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