1705 Commits (ddd07c1a9d08dad0018c22199ea6fafb471626f5)

Author SHA1 Message Date
Barış Soner Uşaklı ac39112271 remove more parseInts 7 years ago
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
7 years ago
Barış Soner Uşaklı ee2f9e9434 remove some parseInts 7 years ago
Barış Soner Uşaklı f5fe91286e closes #6851 7 years ago
Barış Soner Uşaklı 26d4e0852f use includes instead of indexOf
use _.uniq instead of filter&indexOf
7 years ago
Barış Soner Uşaklı 6c15aee888 add cache hits/misses to posts cache 7 years ago
Barış Soner Uşaklı b57db7fd8e
update groups join to take array of group names (#6834)
* allow groups.join to take an array of group names

* pass an array to groups.join/leave in privileges

* split up groups/membership

* add hits/miss to group cache

* fix typo
7 years ago
Barış Soner Uşaklı cf1173b0c4 closes https://github.com/NodeBB/nodebb-theme-persona/issues/408 7 years ago
Barış Soner Uşaklı a3d463916c closes #6822 7 years ago
Baris Usakli 3886a704e0 fix lint 7 years ago
Baris Usakli 84737b5a49 use buildForSelect 7 years ago
Baris Usakli 71905bb2c6 fix watched categories 7 years ago
Baris Usakli 9ed4239d8e small changes and test for user/:slug/categories 7 years ago
André Zanghelini 523a2dc54c Add settings page to control watched categories (#6648)
* Add settings page to control watched categories

* Fix passing undefined to pushUnreadCount
7 years ago
Barış Soner Uşaklı b58ab48485 add test for /sessions controller 7 years ago
Barış Soner Uşaklı 49ba5af5fa
closes #6810 (#6813) 7 years ago
Barış Soner Uşaklı 77beaf2e15
Allow local login,closes #6800 (#6803)
* WIP

* reset groups cache after every suite
7 years ago
Baris Usakli edefab1d69 closes #6728
add option to disable a category on creation
show disabled categories on manage privileges
7 years ago
Barış Soner Uşaklı 59b988a205 change test so it checks url 7 years ago
Barış Soner Uşaklı b7ead6dc9c
Replace jimp with sharp (#6774)
* add probe image size and max image size

* replace jimp and image-probe with sharp

* better name for test

* resize with just path

* resize thumb inplace

* use filename
7 years ago
Julian Lam 382d06bbb0 fixes #6765 -- no need to have gmods and admins access login sessions page 7 years ago
Barış Soner Uşaklı b43bfa3d5b closes #6759
-moved user.blocks.filter from unread controller to getUnreadTopics so
topics are filtered at other places this function is called
- when a new post is made do not send it to uids that have blocked the
poster
- update getUnreadTids so it does not return topics that have new posts
from blocked users
- update hasReadTopics so it does not return false data if topic has new
posts from blocked users
7 years ago
Barış Soner Uşaklı 41aae6f418 closes #6749 7 years ago
Barış Soner Uşaklı 446b125c83 escape post content 7 years ago
LudwikJaniuk c7f3b76b4e DRY req props that depend on auth (fix #6727) (#6731)
* DRY req props that depend on auth (fix #6727)

authentication leads to req.loggedIn and req.uid being set. However, a
later authentication event might outdate them. Here, I create one
function for setting those properties, and make sure it also is called
on the `action:middleware.authenticate` hook, which would be such an
authentication event. If there are other places, those should be added
as well.

* fix lint errors

* fix lint error

* change exports
7 years ago
Barış Soner Uşaklı 3e1b007f9f escape title in post queue 7 years ago
Julian Lam c2c925cacd closes #6678 7 years ago
Julian Lam 29836aaad9 rename session account middleware to sessions, plural, prep for fixing #6678 7 years ago
Barış Soner Uşaklı ae4016d9e0 add getCateries to helpers 7 years ago
Julian Lam f751d21d1e removed debug line 7 years ago
Julian Lam a77630c6be closes #6697 7 years ago
Ben Lubar 33228bb7fe PostgreSQL database driver (#5861)
* [test/database/list] Fix test list 4 being used in two different tests

* [database/postgres] PostgreSQL database driver

* [database/postgres] Make transactions work based on continuation scope.

* [database/postgres] Implement nested transactions

* eslint --fix

* Add database changes from earlier this week to the PostgreSQL driver.

* Fix typo

* Fix postgres.incrObjectFieldBy returning undefined instead of null when given NaN

* [database/postgres] Fix sortedSetsCard returning an array of strings.

* Update socket.io postgres adapter

* Fix PostgreSQL erroring when multiple updates are made to the same sorted set entry in a single operation.

Add a test case to catch this error.

* Fix lint errors.

* Only prune sessions on one instance in a cluster to avoid deadlocks.

They're caught and handled by the database server, but they spam the logs.

* Fix arguments.slice.
7 years ago
Julian Lam 3c6c0ed7a1 restoring passwordExpiry for use in continueLogin, fixed tests, hopefully 7 years ago
Julian Lam b6a5419ca1 closes #6674 7 years ago
Julian Lam 4f8815eb78 closes #6646 7 years ago
Ben Lubar f1a6537fc2 Add notification frequencies from nodebb-plugin-upvote-notifications. (#6640)
* Add notification frequencies from nodebb-plugin-upvote-notifications.

https://github.com/boomzillawtf/nodebb-plugin-upvote-notifications

* Fix editing settings clearing upvote notification preferences.
7 years ago
Baris Usakli cc6a683bc4 closes #6631 7 years ago
Julian Lam 7a53fa9469 Added block and unblock button to profile dropdown menu, #6560 7 years ago
Julian Lam f09b1acfb7 closes #6627 7 years ago
Barış Soner Uşaklı 9912c400b6 closes #6612 7 years ago
Barış Soner Uşaklı 95f1a82884 closes #6591 7 years ago
Barış Soner Uşaklı bc437c8da3 fix popular rss feed url 7 years ago
Barış Soner Uşaklı ccad95cf73 closes #6579 7 years ago
Barış Soner Uşaklı e7cd552e33 closes #6568 7 years ago
Peter Jaszkowiak 70ff2d9b88 Support scoped theme packages 7 years ago
Barış Soner Uşaklı 0b0ce1df8a closes #6549 7 years ago
Barış Soner Uşaklı d31d8fa806 move category pageview to controllers
so topic views are tracked as category views
7 years ago
Barış Soner Uşaklı 7df57ba7a7 remove dupe code 7 years ago
Julian Lam 4e7fdf3e12 Saving flag filters into session object
Closes #6533
7 years ago
Barış Soner Uşaklı b0dad9bd7f closes #6369 7 years ago
Barış Soner Uşaklı 11bb2f1560 closes #6528 7 years ago
Barış Soner Uşaklı d7acec260f closes #6530 7 years ago
Barış Soner Uşaklı 6eea11a4fd closes #6529 7 years ago
Barış Soner Uşaklı a7267df404 closes #6464 7 years ago
Barış Soner Uşaklı 229e49cf8f closes #6523, closes #6524 7 years ago
Barış Soner Uşaklı 65dc530df5 some controller tests 7 years ago
Julian Lam be1a977c71 fix post export crashing if a pid reference doesn't resolve to an actual post object 7 years ago
Barış Soner Uşaklı e29e0a98f5 closes #6515 7 years ago
Julian Lam d648e55493 closes #6494 7 years ago
Julian Lam d1fd07f42f remove console.log, #6486 7 years ago
Julian Lam 18bde866ff Append file name to the JSON payload returned
... during file upload process... closes #6486
7 years ago
Barış Soner Uşaklı cc3569bf51 closes #6491 7 years ago
Julian Lam f2d3111114 disable strict checking of object schema in post upload CSV generation, #6490 7 years ago
Julian Lam 44f8e6d3bb Revert "closes #6483"
This reverts commit 5d198491d5.
7 years ago
Barış Soner Uşaklı 1f8b000530 log and show last restart on ACP dashboard 7 years ago
Julian Lam 5d198491d5 closes #6483 7 years ago
Julian Lam 99f1a5380e closes #6483 7 years ago
Julian Lam c9d8fc3f58 one more minor fix to req.flash err 7 years ago
Julian Lam 4533a311e1 possible fix to req.flash err crash 7 years ago
Julian Lam dc386b5b23 Merge branch 'master' into user-blocking 7 years ago
Julian Lam 8db98b5cf4 additional UCP integration for #6463 7 years ago
Barış Soner Uşaklı 7e00d6b91e https://github.com/NodeBB/NodeBB/issues/6433 7 years ago
Julian Lam 3951bb9532 Merge remote-tracking branch 'origin/master' into user-blocking 7 years ago
Julian Lam 7089e5c6a6 Merge remote-tracking branch 'origin/master' into develop 7 years ago
Barış Soner Uşaklı 6659a520e0 closes #6465 7 years ago
Julian Lam ca932d30d2 basic UCP integration #6463 7 years ago
Julian Lam 4f6cc20457 completed basic integration for #6463 7 years ago
Andrew Rodrigues 0971625e63 allow global mods to still login locally as well as admins if disabled in ACP 7 years ago
Julian Lam fc3ecedf7c Merge remote-tracking branch 'origin/master' into develop 7 years ago
Julian Lam 777d9aeee6 implement proper file sorting by mtime in ACP uploads 7 years ago
Julian Lam 388765bdf9 added post usage column to uploads ACP page
re: #6455
7 years ago
Julian Lam 03dd9dd49b fixed up relative pathing issue in ACP uploads again 7 years ago
Julian Lam 364ded4f8e Merge remote-tracking branch 'origin/master' into develop 7 years ago
Barış Soner Uşaklı 501d02220c closes #6456 7 years ago
Julian Lam 67dec83011 profile export for #6441 + integration 7 years ago
Julian Lam a6564b7b4e endpoint to download user attachments, #6441 7 years ago
Barış Soner Uşaklı 5d2a7106f6 change upload storage 7 years ago
Julian Lam 7ba2ac9f69 Merge remote-tracking branch 'origin/master' into develop 7 years ago
Julian Lam 90a99fe158 closes #6442 7 years ago
Julian Lam 2e6e7f7484 posts export endpoint for GDPR, re: #6441 7 years ago
Barış Soner Uşaklı 927537c759 #6431 add private upload info 7 years ago
Julian Lam 8e822c7772 Added user consent pages (#6430)
- "Your Rights & Consent" user settings page
7 years ago
Barış Soner Uşaklı 7cd004ca23 user uploads route 7 years ago
Barış Soner Uşaklı 04979f86a8 delete users uploads on account delete
store uid:<uid>:uploads
7 years ago
Julian Lam e9ed7f0bb3 closes #6435 7 years ago
Barış Soner Uşaklı 47606c8df5 merge 7 years ago
Barış Soner Uşaklı 0070f5c1b2 Merge remote-tracking branch 'refs/remotes/origin/master' into develop 7 years ago
Barış Soner Uşaklı df770aed8e closes #6416 7 years ago
Julian Lam c1aa46c663 added new option to disable post diffs /cc @BenLubar 7 years ago
Barış Soner Uşaklı 749b282cdd add matchwords to search api 7 years ago