Commit Graph

1705 Commits (ddd07c1a9d08dad0018c22199ea6fafb471626f5)

Author SHA1 Message Date
barisusakli 4066607388 closes
Julian Lam 0b7a21b8d1 Merge branch 'hashtalk' of github.com:NodeBB/NodeBB into hashtalk
Julian Lam 8bac0bf361 Merge branch 'csrf-excision' into hashtalk
Julian Lam a061079995 fixed all POST routes to use new csrf middleware
psychobunny 1caf4806e8 closes https://github.com/NodeBB/NodeBB/issues/2103
Julian Lam 4f6b3055ff Merge branch '0.5.1' into csrf-excision
barisusakli aae7f2434d closes
psychobunny 22577917da closes https://github.com/NodeBB/NodeBB/issues/2093
psychobunny ecd00bb679 refactored widgets api call to render all at once rather than one area at a time, closes https://github.com/NodeBB/NodeBB/issues/2062
barisusakli 9a96458f79 closes
barisusakli da86c46b4c Merge remote-tracking branch 'origin/0.5.1' into hashtalk
barisusakli 7c3dc4877a closes
Julian Lam 84d4035597 Child categories no longer show up on homepage, re:
barisusakli f1d5db6be0 pagination fix
barisusakli ddb02978c8 cleanup
barisusakli e56b18822b added topic titles to notifs
upvote, favourite and flag has topic titles now
barisusakli 493d0dea1e part 1 of notif refactor
Julian Lam 40e5ad075f started work on
barisusakli 4b20e78de2 hopefully final fix
barisusakli 518d731562 one more time
barisusakli f9c9f58561 post_index fix
barisusakli 126b1c4f4c only get 20 chats
psychobunny 071be4ae7f cache popular route for anons
psychobunny 9f0fff4434 closes
Julian Lam 063d270f1a introducing "sort" querystring parameter in topic route, so that sorting can be overridden via query string.
barisusakli 171f02101d closes , closes
barisusakli b8dfbdaff2 small optimization to online users
barisusakli ae6d5e72f4 closes
Julian Lam 298d904d45 refactored login process to be a form submit instead of ajax-redirect, implemented error message parsing using req.flash
barisusakli 603cddc687 closes
barisusakli 4f5c78d675 merge
barisusakli 537dea4e4b crash fix
barisusakli 5f2380fdcd dont display all categories
barisusakli 94c765fa25 closes
barisusakli 95c839579e closes
Julian Lam b7c7dd98c3 ACP setting and API return for subcats
barisusakli 06119510b7 merge
psychobunny 4dd32e1024 filter:category.get applies to all category-like API calls now
@a5mith
https://gist.github.com/psychobunny/572d867935469774c6e8#comment-1281883
barisusakli d411ed5c28 closes
barisusakli 5ae7c92d55 notifications refactor
added getMultiple which works with an array of nids
barisusakli ca90afd544
(drunk) not even done yet
barisusakli b2f8a65bc8 removed slice
barisusakli 522fda2e58 closes
barisusakli d852f284da closes
barisusakli d91fa5747d closes
barisusakli 5c91bc4335 optimized home
barisusakli 5c84a3adb5 closes
barisusakli 4e4a583d9d took out the meta config check from image.js
barisusakli 528ee335d5 optimize getTopicsByTids and getTeasers
psychobunny 3a32058be1 closes
psychobunny bb48bdb008 closes
barisusakli 95979d9d97 closes
barisusakli e7700a3fde minor refactor
barisusakli 0773f51260 closes
barisusakli 76ad2b8fb2 fixed to account header
barisusakli cfc67d4e90 closes
Julian Lam bb7a71389e using websocketAddress config if supplied
Julian Lam 4d73a563c5 closed
barisusakli 3bfad766b3 closes
Julian Lam 883cee31bc added support for showSiteTitle in ACP, closes
barisusakli 6c48cbe6ce regFormEntry array
barisusakli 1e6d589080 show topics on home instead of replies
no template changes, instead of showing the latest x posts under
categories, we are now showing the latest x posts of the latest x
topics.
barisusakli 81018d1305 closes
barisusakli ef8bbdd359 closes
doing andrew's //todo's since 1991
psychobunny 803b6f64b8 ability to disable sitemap.xml
psychobunny 704d81fe53 disable category RSS
psychobunny b6a8845d52 disable topic RSS
barisusakli e036c20072 closes
barisusakli 0362c1a3b0 show day/week/month/year popular topics
psychobunny 5b6acbad1e optimized widget call by bundling all queries into one for ; fixes active users widget crash
also fixes b3819fd076 properly
psychobunny c6183f1a82 closes
Julian Lam 4404387218 Merge branch 'master' into chat-route
Julian Lam 71916f0691 marathon bugfixing with @barisusakli re:
barisusakli 64d04f7aa6 closes
Julian Lam d9cdd2f165 limiting recent chats to 20
Julian Lam 13e4e8dad7 a couple final tweaks to contact list and such...
Julian Lam 1db96dc627 typing notifcation socket implementation for chat page,
Julian Lam 84e046185b WIP
Julian Lam 4d85df5bae issue - start
barisusakli bc257c1c10 removed dupe version
psychobunny ddcca28cf0 pass allowRegistration in login API for
barisusakli e6c9647acf display user post topic stats in admin index
barisusakli b8b6ae7b2f moved upload route into API namespace
barisusakli 5ec289eee2 closes
psychobunny 92c0bd07c9 Ability to enable/disable the upvote/downvote system, closes
psychobunny a2f85648c5 allow voting system to be disabled
barisusakli 1cabf885a2 closes
postCount != lastPostIndex unfortunately, that will need some rethinking
barisusakli f8afb8da3e allow plugins to add new links to user profile menu
Julian Lam 6f218857cb added connect-flash package. npm also alphabetically re-ordered the deps... thanks npm?
barisusakli 2479a34c56 closes , closes
psychobunny db3523b10b
barisusakli 39886c8545 removed unread total route
barisusakli 3b1e373e7b group titles
psychobunny b12ca5ab9f closes
barisusakli 870bf95e5b deleted topic feed fix
psychobunny eeabae5738 closes https://github.com/NodeBB/NodeBB/issues/1668
barisusakli d32dfd98b7 remove main post if page is greater than 1
this fixes pagination after the main post change
barisusakli 7610c11cd1 closes
backup database before upgrade!
upgrade script will take the first post of each topic and set the
`mainPid` property on the topic. then it will remove that pid from the
sorted sets for that topic, this was done to make alternative sorting
work.

added a new sorted set called `tid:<id>:posts:votes` that is used to
sort topic posts by vote count, the original sorted set `tid:<id>:posts`
is used to sort by oldest first or newest first.

the main post is added to the returned posts array on topic load and is
always at the top.
theme changes are minimal just a few new data properties on the posts
and the sorting dropdown.
hopefully didn't miss anything too critical.
barisusakli efe04c12d3 closes
if email isnt confirmed, show a warning in account/edit and let users
resend confirm email
barisusakli b537666e5c closes , closes
barisusakli 0574022e02 fixes to infinitescroll
barisusakli 55dbc5c823 closes
changed post links to "topic/<topic_id>/<topic_slug>/<post_id>"
psychobunny 791fde7904 fixing properly for unread count
psychobunny 0334a487b5 fixing properly for profile views
psychobunny 74097be2e4 additional fix for
psychobunny fee591e551 fixes
psychobunny bfa3b0f22f global header widgets
barisusakli 9c0446d416 closes
barisusakli 48aba5fc64 category widget changes
Julian Lam f20926f93d finished up group list and group details pages - closed
Julian Lam 7425b72245 most of the work for
Julian Lam 7bdbb966aa groups pages WIP
barisusakli b8b482e287 closes
barisusakli fa1275c03a closes
barisusakli 746df87d89 upgrade tags to sorted set
barisusakli 51e07e197b added isSelf to account route
barisusakli 87fe5bf1bb delete tag if it has no topics left
barisusakli df73ceaeb7 closes
added tag input box to composer when creating a topic
added new routes for viewing tags 'tags' and 'tags/:tagname'
respectively
post_bar.tpl shows the tags of the topic
can edit the main post to remove or add new tags
added a new menu item to header to go to the tags page
barisusakli c7c54560bc fixes going into deleted topics for admins
barisusakli cd08a16f77 return post count to with categories
Aziz Khoury 8d6a8dc928 filter:register.build now returns what it was passed, in order. fixes , we seriously need to consider standarizing the hooks arguments, maybe some ideas here
Julian Lam e43ebb0423 Merge pull request from akhoury/master
captcha support
Julian Lam b1534b7798 removing allowGuestPosting logic in NodeBB
Julian Lam 3474cdc5ea added new privilege "find", added guest meta group, closed
Aziz Khoury 0e0f66ba9e minor cleanups.
Aziz Khoury d3a11f7ad8 Merge remote-tracking branch 'upstream/master'
barisusakli b1aae05a08 closes
barisusakli 3e86bdb38f more work on
still needs more work, category is next
Aziz Khoury 086013829b added 'filter:register.build' hook to augment register template data
psychobunny a5a2e6f04e update BS brand colors in ACP
Julian Lam d54ecea506 more privilege changes
Julian Lam 7c8b442dcd more updates to privileges revamp
barisusakli c5d9a68b4b closes
psychobunny 10716c37d3 closes
Julian Lam b56df975e0 fixed 1495
barisusakli 1f7fd51b40 some work for
barisusakli 7a25f0bb36 fix for
psychobunny 38a3ab6365 fixes routes for https://github.com/designcreateplay/NodeBB/issues/1485
barisusakli c8efeb7d7c closes , bunch of other fixes to 404, 403 in accounts
psychobunny bb12ebac48 closes
Julian Lam b049bd466c added 'config.version' to client-side
barisusakli ee12b4fd3e removed duplication in uploads
barisusakli 53021d31b0 closes
barisusakli 1d1d677b56 closes
barisusakli c9551abc5d closes
ability to select a default gravatar image (default, identicon,
mystery-man, monsterid, wavatar, retro) or upload a custom image to use
as default gravatar image
Julian Lam 5f5906860e fixed
barisusakli a1e6a3616c ability to install/uninstall plugins from ACP
psychobunny 0be414dab9 add registered-only checkbox option to widgets
Julian Lam 126260a027 added cache-buster to template xhr urls -- closed
barisusakli e7a415246e closes
Julian Lam 84a34933fe fixed -- ACP will tell user that they need to restart, if they need to restart
barisusakli 01555cbb5c return privileges in category
psychobunny e5486db1ae Merge branch 'code-quality' of https://github.com/miksago/NodeBB into miksago-code-quality
Conflicts:
	src/database.js
barisusakli 3e60451ce4 closes
lets user change languages,
barisusakli 90540f64cf removed some unused translator requires
Julian Lam df8728c785 allowing plugins to define new sounds -- woot.
Also moving the core sounds into a separate package, soundpack-default
Micheil Smith 3e82cab398 Add missing new lines at end of files.
barisusakli 0ac58dbee6 more error strings
barisusakli 1e96c21cae removed the span size
barisusakli 2195b20385 closes
barisusakli d2033abf96 fixes unread page
if you had more than 20 unread topics it was loading 40 now it will only
load 21 then keep loading with infinite loading
frissdiegurke 993b745f1c Added svg-support for category pictures
barisusakli a7c5a5e819 closes
barisusakli 421a25eb56 closes
barisusakli 4bc3f54468 closes
psychobunny 7926514c95 draft zone for widgets, closes
psychobunny 576246c315 global widget areas (sidebar/footer) - closes
barisusakli 0e5c65199d simpler static
barisusakli 824d849a52 removed req
barisusakli a3842d2c61 removed similar code
barisusakli e5a5b8e8bf added privateUserInfo and isLoggedIn for
Julian Lam be45ad163a properly fixed
Julian Lam 585eb9e1be fixed
barisusakli 61ae01543c fixed to use postsPerPage
barisusakli a400e5de81
barisusakli 6fc3103aef topic og:image changes
barisusakli 48ed540801 closed
barisusakli 0c744a947e chat will use timeago
barisusakli 0741b162cb
barisusakli f247c2195e fixed user picture in og:image
barisusakli 94a589e0e4
barisusakli 1f2d5abbb7 possible fix for
barisusakli 0cfd05d839 closes
barisusakli db3632557e moved notification push out of markAsRead
barisusakli bac3cf03cb moved unread to new file
barisusakli 7f193041a8 removed admin topics
barisusakli fa98da6978 related to
Julian Lam c709b7ed5b Merge remote-tracking branch 'origin/master'
Julian Lam 4239c376c8 truncating user list in Groups ACP page, resolved . Refactored system groups handling
barisusakli 567d867b1e fixed require to missing public config.json
barisusakli 0f66e80a5a added setting to disable notification sounds
Julian Lam c1ccc81400 ACP integration for Sounds
Julian Lam 17903adace Merge branch 'master' of github.com:designcreateplay/NodeBB
barisusakli 46a475fdde controllers/admin/users cleanup
barisusakli ea4931fa1d removed dupe from controllers/user.js
barisusakli 37e8856861 new middleware to add slug to topic and category
Julian Lam f942c03a58 Merge branch 'master' of github.com:designcreateplay/NodeBB
barisusakli 611c16b5a6 closes
barisusakli 1354739d19 user deletion
user deletion NOT SKALABLE
Julian Lam 6d03f713c5 "Sounds" tab in Settings page... WIP, needs fixing.
barisusakli 175230e337 closes
barisusakli 90e398e5c9 user js refactor, category fix
if a category that didn't exist was request with category/1231 or
api/category/1231 it was crashing.
psychobunny f47f146320 moved out uploads and users from controllers/admin into their own files
psychobunny 641ec3ef82 moved duplicate upload validation code into its own fn
psychobunny 0bbff06cfa use middleware.authenticate instead of checking in each fn
psychobunny 01cda60704 moved admin upload functions into controllers/admin; re-organized routes/admin to look like routes/index; removed unused deps
barisusakli e9ab9dcce2 search cleanup
Julian Lam f28c690f2f fixing up robots.txt
barisusakli 813b3d6fcc changes for live streaming of posts
Julian Lam b259c3d422 categoryData should return better topics (non-anon uid passed in now)
Julian Lam 82a82afe99 updated the way privileges were handled in the .get() category controller
barisusakli 88c4b90fc8 accounts controller removed duplication
barisusakli 037e8943a8 removed left over
barisusakli 9564b6fda2 closes
barisusakli 3d68c7c6b6 added getObjectsFields methods to db class, changed getUsers methods to use the new method, refactor to user.js and mongo.js
barisusakli 974333dbc3 fixed missing currentPage
psychobunny 30cfddda68 fix for topics view count, and marking topics as unread
psychobunny 6ea4d89edc fixed search routes
psychobunny a99be8e7be got rid of all the res.locals.isAPI checks in all controller methods. now 1000% cleaner :shipit:
psychobunny faf3de7e27 added a check for res.locals.isAPI inside res.render, instead of doing it all over the place in code
psychobunny 464c2f42c3 Merge remote-tracking branch 'origin/master' into webserver.js-refactor
Conflicts:
	public/templates/admin/themes.tpl
	src/meta.js
	src/routes/api.js
psychobunny f20a2a2047 merging changes from deprecated routes/user.js
psychobunny 8f7a7fec7d more cleanup; commenting out custom plugin routes until its fixed properly
psychobunny 48df0cf889 Merge remote-tracking branch 'origin/master' into webserver.js-refactor
Conflicts:
	src/routes/admin.js
psychobunny c24c2a5422 search and reset routes, the very last of the views to be refactored :shipit:
psychobunny d3aead7c13 changing renderHeader function signature to req, res, next
psychobunny 7ef6f9bbf5 buckled down and refactored pretty much all of admin routes x_x
psychobunny 94aeb3ab22 notifications route; added middleware.authenticate to user/uploadpicture api route
psychobunny 5b8e8e4b67 deprecating use of templates.setGlobal on server side in favour of passing in api.config into res.locals (still needs work)
psychobunny 188aeabba8 missed a file in previous commit
psychobunny 7bef58deb1 started moving out api functionality out of the route file into controllers/api.js
psychobunny d18ce28de0 fixxed categories.get; privileges object and currentPage were missing on original route
psychobunny 88ca3733a7 more jshinting
psychobunny cdf92c5cda fixed a really annoying bug - the original topics route pre-refactor never actually included a privileges object
psychobunny fa2b5d1ee6 re-implementing meta and link tags - completified
psychobunny 3eb9f65c2e jshinting controllers/index.js; adding back meta tags to home page
psychobunny 8df33e65ac fixing bug in topics causing meta tags to revert on subsequent refresh
psychobunny dbbbe21883 re-implementing meta and link tags part 1
psychobunny 6820e9e662 random jshinting expedition
psychobunny f35c14ee07 bugfixes + cleanup for accounts and users routes
psychobunny fa103b2d6e finally done with routes/user.js; accounts.getUserByUID; bug fixing and cleanup
psychobunny 08d3d9feb3 accounts.uploadPicture
psychobunny bfcb61f37d forgot to port getUserDataByUserSlug
psychobunny d072ad60de all users/ pages converted
psychobunny 7c873c4314 decided to functionally separate accounts from users
psychobunny e64d87cb1d all user account pages; all static pages; outgoing page
psychobunny 00df660fa5 robots + sitemap; some clean up
psychobunny 942d16a3b4 confirmEmail route
psychobunny dae7b06f4d initial login and register routes
psychobunny e193d58112 unreadTotal route
psychobunny beafc881c4 added recent and unread in categoriesController
psychobunny 96d6b96ce4 controllers.home
psychobunny ad222dce2a controller indexx
psychobunny 233e49fd34 topics controller
psychobunny 62a4b419e3 categories controller