10001 Commits (9d1fcf4e3650e7a236206f45b4b4c4770b66f88a)

Author SHA1 Message Date
Julian Lam 4fba1492c1 feat: added new middleware authenticateOrGuest 7 years ago
Julian Lam eeaee8ccef fix: not calling authenticate middleware on resource direct access
routes
7 years ago
Julian Lam 5f3d1c76c8
fix: #7038, autoLocale logic not playing nicely with no-refresh auths (#7059)
* fix: #7038, autoLocale logic not playing nicely with no-refresh auths

- on login, req.query.lang is deleted (since it seems to be left over)
- on logout, the middleware.autoLocale is executed, which resets
  req.query.lang
- middleware.autoLocale is new, just refactored existing logic in
  webserver.js into new middleware method.

* style: tests, use lodash

* fix: timeago strings not switching languages on login or out
7 years ago
Julian Lam a07d9898df fix: #7071 buildSkinAsset won't rebuild continuously 7 years ago
Barış Soner Uşaklı 7ca62b8399 feat: closes #7070 7 years ago
Baris Usakli 96c1dc6276 unescape email subject 7 years ago
Baris Usakli eab297bdc9 fix: #7061 7 years ago
oh d7c55bc3f7 feat(email): don't escape html in notification bodies. (#7042)
allows for post replies, etc. to show the formatting of the orginal 
post, rather than looking garbled.

closes #7034
7 years ago
Baris Usakli d3c6cba33f closes #7060 7 years ago
Baris Usakli 67ac8e3d06 closes #7053 7 years ago
Barış Soner Uşaklı 54c127d1b2 feat: allow array results 7 years ago
Barış Soner Uşaklı f581c052ee feat: #7023
- add category selector to privileges and category create modals
- allow category selector to work for multiple selectors on same page
7 years ago
Barış Soner Uşaklı a63ddbe2aa fix: #7040
if category doesn't exist return null and 404
7 years ago
Barış Soner Uşaklı ec0c50d4e0 fix: #7041 7 years ago
Barış Soner Uşaklı 8d7c3897f2 fix: #7043 7 years ago
Barış Soner Uşaklı cb7c2d8c28 fix: add missing render function 7 years ago
Barış Soner Uşaklı 1f918ca8f8
Home route (#7039)
* fix: WIP home fix

* remove console.log

* fix: #6949

on redis run all tests in subfolder /forum
fix URI errors
fix sping/ping
7 years ago
Baris Usakli 8808a03307 fix: #7033 7 years ago
Baris Usakli b86f155690 fix: #7037 7 years ago
Peter Jaszkowiak ba619c7ec8 style(eslint): match operator-linebreak preferences 7 years ago
Peter Jaszkowiak 89c025d102 feat: close #7002, console message if mismatched origins 7 years ago
Peter Jaszkowiak 43c3bb02e5 fix: #6991, add timeout for version Github request 7 years ago
Baris Usakli 33d7735690 change deprecated message 7 years ago
SweetPPro dab1a1d638 fix for null category (#7029) 7 years ago
Barış Soner Uşaklı 29e9310aa5 dont crash for undefined categories 7 years ago
Barış Soner Uşaklı 6330d51446 less derpy output 7 years ago
Barış Soner Uşaklı ed1bf9a16f add more info to advanced db page 7 years ago
Barış Soner Uşaklı 4b486a808e fix custom home 7 years ago
Barış Soner Uşaklı 2c5e38d8f1 closes #7004
do not translate email subjects twice, emailer already translates the passed in subject param
7 years ago
Barış Soner Uşaklı 00a066985a cache categories:cid and cid:<cid>:children
these rarely change, no need to go to db for them
7 years ago
Barış Soner Uşaklı 112b5c861a change queue logic, if user has negative rep always queue their post 7 years ago
Barış Soner Uşaklı 1d5816b00a add new hook `filter:unread.categories` 7 years ago
Barış Soner Uşaklı 59eeff8f0f closes #7011 7 years ago
Barış Soner Uşaklı d0750bc587 closes #7007 7 years ago
Baris Usakli 1bb6067e19 suggested topics fix, if search doesn't return enough topics 7 years ago
Baris Usakli 8e5a6d9767 add banned:expire to user data 7 years ago
Barış Soner Uşaklı 53ad2bbd6e
Categories optimize (#6999)
* WIP

* fix category page

* fix counts, and copyPrivileges

* fix lint

* more fixes,

* redis fix

* fix test

* fix  category test

* remove getParentsAndChildren
7 years ago
Barış Soner Uşaklı 69ef05707a style 7 years ago
Barış Soner Uşaklı 3f8e3dc3e8 Merge branch 'master' of https://github.com/NodeBB/NodeBB 7 years ago
Barış Soner Uşaklı 13139fe77e return early for guests/spiders 7 years ago
Barış Soner Uşaklı 0524fd9caa
closes #6996 (#6997)
* closes #6996

* fix lint
7 years ago
Baris Usakli 7b9a2caec3 closes #6994 7 years ago
Barış Soner Uşaklı b8c08a5417 dont call db for guests 7 years ago
Barış Soner Uşaklı d8f114c982 dont check if guests/spiders are banned or load reason 7 years ago
Barış Soner Uşaklı 9d28b935fd dont load uid 0, -1 from db 7 years ago
Barış Soner Uşaklı d5af39ca5d make 1 call for parentCids 7 years ago
Barış Soner Uşaklı 01c942fc39 closes #6989 7 years ago
Barış Soner Uşaklı eba1a405d2 load category parents and childrens in one call
add more missing guest/spider checks
7 years ago
Barış Soner Uşaklı a6864a8055 add groupTitle test for guests 7 years ago
Barış Soner Uşaklı 1c981e638b rename query name 7 years ago
Barış Soner Uşaklı ca1e3a758b #6986 7 years ago
Barış Soner Uşaklı 48690a01b9 dont need to call multi if keys.length is 0 7 years ago
Barış Soner Uşaklı 20abc7fc47 closes #6985 7 years ago
Barış Soner Uşaklı b331ca26a1 add search to acp 7 years ago
Barış Soner Uşaklı 63c0a9a3b7 closes #6928 7 years ago
Barış Soner Uşaklı fc1c4acccf closes #6960 7 years ago
Baris Usakli b83e50f286 remove delayImageLoading from api @julianlam 7 years ago
Barış Soner Uşaklı 94e10c8c32 closes #6972 7 years ago
Barış Soner Uşaklı f75e2ed1ee fix lint 7 years ago
Barış Soner Uşaklı c36ddec08b promisify plugins 7 years ago
Barış Soner Uşaklı 33986f38e3 closes #6954 7 years ago
Barış Soner Uşaklı 1ce15e69ab dont require search and moustrap on topic page until needed 7 years ago
Barış Soner Uşaklı e17c4b2766 uid fixes 7 years ago
Barış Soner Uşaklı c02d584b53 reduce initial js payload/requests 7 years ago
Barış Soner Uşaklı f1a6d39537 dont crash if a loginStrategies is undefined 7 years ago
Barış Soner Uşaklı c72299ad71 refactor widgets admin
so we dont load the widget-settings.tpl in the upgrade script and only load areas
7 years ago
Barış Soner Uşaklı 9fecad138c limit number of js files minified, dont crash upgrade script of widget-settings is not found 7 years ago
Barış Soner Uşaklı f0dead7aba more tooltip work 7 years ago
Barış Soner Uşaklı 21402ba803 check joindate 7 years ago
Baris Usakli d0b67b00db closes #6949 7 years ago
Baris Usakli adb647a8ae export express app from webserver 7 years ago
Julian Lam f96208a0c8 fix(uploads): ugly filenames on uploaded asset downloading
During regular processing, a timestamp is prepended to the filename
for any uploaded files. We don't want this to be part of the filename
if an end-user elects to download the file.

This commit adds a middleware to strip out that portion of the
basename and adds the appropriate Content-Disposition header for
files in /uploads/files

Fixes #6953
7 years ago
Peter Jaszkowiak 57b39d5ba2 fix(acp): small UI fixes for ACP privileges category selector (#6946)
- Add dropdown chevron
- Change translations
- Safety against `category` not an object
7 years ago
Baris Usakli c5a093e1f2 closes #6950 7 years ago
Barış Soner Uşaklı 7dabd13fea remove unused 7 years ago
Barış Soner Uşaklı de14102ee7 Merge branch 'master' of https://github.com/NodeBB/NodeBB 7 years ago
Barış Soner Uşaklı d9452bf3d4 fix: custom navigation item not showing groups 7 years ago
Julian Lam b3f96d28aa fix(acp): hard-to-discover dropdown selector in ACP
Made the dropdown an MDL button fab with better positioning via
a p.lead so that it is more easily discoverable and obvious that
it is a button that can be pressed.

Fixes #6899
7 years ago
Barış Soner Uşaklı a57d94194f Merge branch 'master' of https://github.com/NodeBB/NodeBB 7 years ago
Barış Soner Uşaklı 157a7d1f0e prevent possible crash if category.posts is undefined 7 years ago
Barış Soner Uşaklı c593ffd75f
closes #6944 7 years ago
Barış Soner Uşaklı d63db8d20f arrow function 7 years ago
Barış Soner Uşaklı 69bb3293ee misc fixes
handle spider uids properly
7 years ago
Barış Soner Uşaklı afa84023a2 closes #6942 7 years ago
Barış Soner Uşaklı 96e986a865 optimize suggested topics/search 7 years ago
Barış Soner Uşaklı 07f83c5078 fix redis tests 7 years ago
Barış Soner Uşaklı f8e219c323 handle empty set, add test 7 years ago
Barış Soner Uşaklı afa6c71b72 make it a method use batch 7 years ago
Zheyu Shen f9036e2a6f Update groups members' title when changing group name (#6939)
* Update groups members' title when changing group name

* Fix eslint
7 years ago
Barış Soner Uşaklı 18219bd5f3 closes #6938 7 years ago
Barış Soner Uşaklı e6c4af7f6f fix lint 7 years ago
Barış Soner Uşaklı e1eebef398 does this work 7 years ago
Barış Soner Uşaklı e14b0b38be derprelic 7 years ago
Barış Soner Uşaklı 485fbf7386 show more lines in stack 7 years ago
Barış Soner Uşaklı b6771836cf closes #6937 7 years ago
Baris Usakli 3425370adb dont use indexOf in map 7 years ago
Barış Soner Uşaklı 973b5fcfe0 closes #6932 7 years ago
Baris Usakli 2c5157aeaa use max.min 7 years ago
Baris Usakli 2ee743d65c add itemsPerPage to search api 7 years ago
Baris Usakli 62787368c6 add searchonly option to searh api 7 years ago
Barış Soner Uşaklı 4724901588 use series 7 years ago
Julian Lam d027207f88 fix: flags detail page crash if reporter blocks author
Fixed an issue where the flags detail page would crash if the
reporting user flagged a post and then proceeded to block the
post author.

Retrieval of a flag's target data should be irrespective of
block status.

fixes #6925
7 years ago
Julian Lam 95cc27f1ff style(eslint): enforcing newline on chained calls 7 years ago
Julian Lam a5022ce425 fix: #6922, skin assets not including plugin LESS files 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ı 75816deca7
add cache to redis (#6917)
* add cache to redis

move out cache module from mongo

* fix redis tests

* add callback noop

* fix typo

* del cache on field delete

* make redis/mongo caches separate
7 years ago
Julian Lam 501b3a79ca
Refactor skins to be built on server-side (#6849)
* WIP

* using bootswatch from npm instead of bootswatch CDN url

* feat: on-demand client css building for skins

* added ability for client-side to select a skin

* updated loading and saving logic of bootstrapSkin on client side user settings

* fix: broken test for #6849
7 years ago
Julian Lam 84433f29ab
Do not require a full refresh on login/logout (#6841)
* no-refresh login as well, plus lots of fixes for missing config on login

* replace config with new set on logout as well

* passing new payload data into new action:app.loggedIn hook, and old action:app.loggedOut hook

* fixed issues with socket.io not properly representing uid on server

* some light refactoring and cleanup

* minor cleanup, fixed spa logout not working after login

* have reconnection handler for socket.io wait 2s to confirm disconnection before reporting -- stops flicker if reconnecting immediately

* Dynamically replace chat and slideout menu on updateHeader()

... instead of just the menu items.

* more efficient calls to Benchpress and translator /cc @pitaj

* fix: chats and notification handlers not working after login

* fix: accidentally calling cb multiple times
7 years ago
Baris Usakli 968be7d8de make lint happy 7 years ago
Baris Usakli 3c611d85ed closes #6912
- on category setParent dialog do not show children of current category
- break recursion if category parentCid is equal to child cid to prevent
infinite loop
- dont allow setting the parentCid of a category to one of it's children
7 years ago
Barış Soner Uşaklı 6f47446171 closes #6910 7 years ago
Julian Lam 3c8939a80d fix: interstitial redirects failing if done via ajaxify 7 years ago
Barış Soner Uşaklı 2df19c0ae4 fix typo 7 years ago
Barış Soner Uşaklı ed7399f9ed shorter code 7 years ago
Barış Soner Uşaklı 412358b070 #6903 7 years ago
Barış Soner Uşaklı 67d3b29204 #6903 7 years ago
Barış Soner Uşaklı ff38abc225 move bcrypt into password 7 years ago
Barış Soner Uşaklı 4e297921c4 dont show object cache if it doesnt exist 7 years ago
Barış Soner Uşaklı 4caaa046d7 dont load post data again
shorter async.parallel
7 years ago
Barış Soner Uşaklı d3e4daebec posts/delete cleanup 7 years ago
Barış Soner Uşaklı 0de60cfdca fix mongodb tests 7 years ago
Barış Soner Uşaklı 8ca36ad122 closes #6890 7 years ago
Julian Lam 157bea6966 fix: username trim on login, closes #6894 7 years ago
Julian Lam 5ccdc1c017 internationalising english labels in session time ACP block, #6883 7 years ago
Julian Lam 58b088c054 update html on session time ACP block, #6883 7 years ago
Barış Soner Uşaklı 2e579ee0f9 closes #6883 7 years ago
Barış Soner Uşaklı 5ee4529a8e if source has no parentCid assume 0 7 years ago
Barış Soner Uşaklı 9918389a43 closes #6884 7 years ago
Barış Soner Uşaklı 7aa937a657 remove dupe code in mongodb sorted 7 years ago
Barış Soner Uşaklı ea1e8fb8fe Merge branch 'master' of https://github.com/NodeBB/NodeBB 7 years ago
Barış Soner Uşaklı c27be9db5a
Recent refactor (#6879)
* wip

* fix inf scroll

* remove duplicated code

* remove dupe code in /unread

* use topicList

* update tag page to use topicList

* fix tests

* combine ifs

* remove more dupe code

* disable timeout
7 years ago
Barış Soner Uşaklı 66ed48e088 closes #6875 7 years ago
Julian Lam 4919e9efa3 feat: allow disabling of GDPR features via ACP toggle, closes #6847 7 years ago
Baris Usakli 51792da430 dont crash if there is nothing to write 7 years ago
Baris Usakli 12f3f56b01 change to .exists 7 years ago
Baris Usakli 566564ed74 fix redis tests
fixed typo in groups/data.js
added postcount,viewcount to int fields
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
Barış Soner Uşaklı aca50f1fe1 dont crash if topic is moved to pinned topic 7 years ago
Barış Soner Uşaklı da22940b80 dont retry absolute paths 7 years ago
Barış Soner Uşaklı ebd4b19a65 moved req.user up 7 years ago
Barış Soner Uşaklı 9c03881d5a add threshold for image resizing 7 years ago
Barış Soner Uşaklı 369e4854d2 remove parseInts 7 years ago
Barış Soner Uşaklı 541997a755 fix lint 7 years ago
Barış Soner Uşaklı 40f9ee3003 dont crash if topic does not exist 7 years ago
Barış Soner Uşaklı 2f198583c4 change to this 7 years ago
Barış Soner Uşaklı a2aae7f805 shorter error message 7 years ago
Barış Soner Uşaklı 69253d9a7f use chart.js legend 7 years ago
Barış Soner Uşaklı 1d15449076 write analytics before exiting 7 years ago
Barış Soner Uşaklı 5b842c98ac fix typo 7 years ago