Commit Graph

3459 Commits (eeb4c9f4879fdf6be13f6b6d14a53f62bb0bfacc)

Author SHA1 Message Date
barisusakli 43c1787754 dont exist if cant parse css
barisusakli 37b73e1c02 cleaner mongo setRemoveRandom
Julian Lam 0dad7adb8d issue - start
Julian Lam b03bb3a32b issue - start
barisusakli 5097526ae0 pass express app to plugins, closes
barisusakli f288f80da6 meta.js refactor
barisusakli 80cb0cf7e0 plugins.js jslint
psychobunny ddcca28cf0 pass allowRegistration in login API for
barisusakli 3e75a4397a fixes guest post data in topics
barisusakli dcbed4e935 closes
show alert if email not confirmed, clicking alert will send confirmation
email
barisusakli 586aeaf53f added error checking to install.js for categories
barisusakli 5ea74ae9e9 closes
barisusakli 119d13053d move static to end
barisusakli ec1196d288 use router for relative path
barisusakli 38494a2af0 pass in session directly
barisusakli 78c977e8f6 removed trailing slash
barisusakli 9e8584eee7 uploads
barisusakli 24ebf20d7e first commit
barisusakli 4b005a4037 crash fix
barisusakli e6c9647acf display user post topic stats in admin index
barisusakli 9a4e6aa01c closes
barisusakli 6389bc762c fire post edit after hook after post is saved
barisusakli c29dcc0ec9 fire topic edit action after topic is saved
barisusakli b8b6ae7b2f moved upload route into API namespace
barisusakli b41b311d94 another eachLimit
Julian Lam ffd2ddc3e7 Revert "moved meta up"
This reverts commit 8c9feb85a4.
Julian Lam cda3f9376d updated error text to show proper setup command
barisusakli 5ec289eee2 closes
barisusakli efcc42f170 added eachLimit to upgrade script
barisusakli 8c9feb85a4 moved meta up
barisusakli 82a1215128 setOnEmpty
barisusakli 9aacb5e259 remove dupe code
barisusakli 24aa166ed5 dont error when no teaser data
barisusakli d57f183f42 privileges.posts.get takes an array of pids now
barisusakli 6cd29a31a4 removed timing
barisusakli c3a9767bf6 late night optimizations
-isMemberOfSets returns true/false instead of 1/0
-when loading the posts of a topic only get the userdata for each user
once, before this commit if a topic had 10 posts from 2 different users
we were getting the user data for each user 5 times (drunk)
-getVoteStatusByPostIDs and getFavouritesByPostIDs no longer make
pids.length calls to the db, they use isMemberOfSets now
-getUserInfoForPost renamed to getUserInfoForPosts and doesnt make
uids.length calls to db, uses getMultipleUserFields instead
barisusakli d3fc71529a callback
barisusakli a9e5e82431 closes
Julian Lam 46f9a7860c applying translator to messages.
psychobunny 92c0bd07c9 Ability to enable/disable the upvote/downvote system, closes
psychobunny b040201764 prevent hax voting via websockets if system disabled
psychobunny a2f85648c5 allow voting system to be disabled
barisusakli 1cabf885a2 closes
postCount != lastPostIndex unfortunately, that will need some rethinking
barisusakli 49a9601a04 closes
psychobunny b3c9323026 use admin setting for downvote privileges, closes
psychobunny 8a03b42d62 prevent a user from downvoting if at negative rep
psychobunny 6685e140c3 pass err through
psychobunny f4955ffb8d closes
psychobunny 0e92c7ed94 use templates.js module instead
barisusakli f80b3c3b66 simpler union
barisusakli 7f534cc7b8 sorted set refactor
Barış Soner Uşaklı 2d734c1648 fixed move recent replies
barisusakli eb9b4a62dc fix topic move, fix moveAll
move topic wasnt moving mainPid, also fixed crash on move all
clicking permissions on admin/categories no longer goes to top of page
barisusakli c191aa079f closes
barisusakli c642493bce guest post fix
barisusakli e6d8e9c959 searchIndex callbacks
barisusakli 1296cd58b9 closes
barisusakli 3c3ad7d115 closes
barisusakli bd4722665d closes
removed move button from main post, disable moving main post, fixed
moving posts.
barisusakli 9af12819e3 closes
barisusakli a9adfe9428 fix crash in topic move
barisusakli 0987aed0e6 callback undefined error
psychobunny f6838ef51e only use passport.authenticate if a strategy url is defined
barisusakli b7e04239e9 use water in post edit
barisusakli ab6429c578 closes
barisusakli 78509b4ad0 use sortedSetsRemove to remove tid from tags
barisusakli fd12ec763a sortedSetsRemove
instead of calling sortedSetRemove() one at a time for each id remove
value from multiple sortedSets with one db call
barisusakli a4d4e53f45 speed up category purge
using eachLimit
dont emit stats on every topic delete
barisusakli dceeed22f7 closes
Julian Lam 458e294293 switched validator library out in favour of String lib
Julian Lam d229cd21b2 parsing the post content that's passed into bodyLong in notifs
Julian Lam c41bb05711 final pass , closed
Julian Lam d257632878 first pass , updating existing calls to notifications.create, backwards compatibility in case plugins create notifications too.
Julian Lam a3d01aea58 added error handling if bad LESS is written in ACP. closes
barisusakli 13854e8774 closes
barisusakli 03ec1c3216 added group.hide back into groups.join
Julian Lam b1faca3614 saving portless hostNAME into server config, not the host! Argh. closed
Julian Lam adc2fcc649 added deserialize library to frontend
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?
Julian Lam dedc6d8154 added new hook for notification pushing
barisusakli 15c16c2502 closes , set category post counts to 0 before starting upgrade
barisusakli 7c84680b06 closes
Charles b811bef42c Don't decrease postCount when purging post from a deleted topic
Charles 1448bed057 Remove console.log
Charles 31f1914ec8 Update global postCount when deleting/restoring topic
psychobunny 0c7a8b3908 no need to reset global widget areas, closes
barisusakli 2479a34c56 closes , closes
psychobunny db3523b10b
barisusakli 3c44beb4bb group userTitle default
psychobunny d2e1cc3371 Merge pull request from char101/PR/dont-reset-widgets-on-changing-skins
Don't reset widgets when changing skin
Charles 0cba152516 Redirect to category after purging topic
Charles 51fb7786f5 Don't reset widgets when changing skin
barisusakli 39886c8545 removed unread total route
barisusakli d1b4efeaa3 filter files before minify, removed unused ctime
barisusakli ab80016910 fixed group hide for privilege groups
barisusakli 1908f7b57a filter missing less and css files from plugins
barisusakli 3bd4d0e418 closes
barisusakli 07275b5fc4 some checks to make last admin isnt removed
barisusakli 842a1f90cf fix crash on push
barisusakli 42d03cc491 closes
barisusakli 9d4f1e18e1 removed length check
barisusakli cd5c24efe3 possible fix for
barisusakli 4c2765a79c closes
barisusakli ce1934e566 closes
barisusakli 3b1e373e7b group titles
barisusakli e8b89513d4 some cleanup in addUserInfoToPost
barisusakli b9139ef263 some escaping and fixed uploads in progress
psychobunny b12ca5ab9f closes
barisusakli 870bf95e5b deleted topic feed fix
psychobunny eeabae5738 closes https://github.com/NodeBB/NodeBB/issues/1668
barisusakli 4fa79dc821 closes
category purge, deletes all topics and posts in the category
barisusakli 311a7ad5b9 topic purge
psychobunny 2688ea9733 upgrading topics take a while, so let the user know
barisusakli a65d612907 post purge
barisusakli eb1b48092d closes
psychobunny e5d465392f closes
psychobunny 8443ae58ff users.getXbyEmail - lowercase before searching
Charles 90b2d766f7 Fix callback execution in redis search
`callback` should be passed to `reds.search` otherwise the execution will be overlapped. 

For example in the plugin `nodebb-plugin-dbsearch':

```javascript
db.searchRemove('topic', tid, function() {
	if (typeof title === 'string' && title.length) {
		db.searchIndex('topic', title, tid);
	}

	if (typeof callback === 'function') {
		callback();
	}
});
```

The actual execution is like this

```
1402387863.625553 [0 127.0.0.1:16660] "zrevrangebyscore" "nodebbtopicsearch:object:6" "+inf" "0"
1402387863.625891 [0 127.0.0.1:16660] "MULTI"
1402387863.626043 [0 127.0.0.1:16660] "zadd" "nodebbtopicsearch:word:123" "1" "6"
1402387863.626052 [0 127.0.0.1:16660] "zadd" "nodebbtopicsearch:object:6" "1" "123"
1402387863.626060 [0 127.0.0.1:16660] "zadd" "nodebbtopicsearch:word:TST" "1" "6"
1402387863.626065 [0 127.0.0.1:16660] "zadd" "nodebbtopicsearch:object:6" "1" "TST"
1402387863.626071 [0 127.0.0.1:16660] "zadd" "nodebbtopicsearch:word:AN0" "1" "6"
1402387863.626076 [0 127.0.0.1:16660] "zadd" "nodebbtopicsearch:object:6" "1" "AN0"
1402387863.626083 [0 127.0.0.1:16660] "zadd" "nodebbtopicsearch:word:TPK" "1" "6"
1402387863.626092 [0 127.0.0.1:16660] "zadd" "nodebbtopicsearch:object:6" "1" "TPK"
1402387863.626104 [0 127.0.0.1:16660] "zadd" "nodebbtopicsearch:word:ETTT" "1" "6"
1402387863.626116 [0 127.0.0.1:16660] "zadd" "nodebbtopicsearch:object:6" "1" "ETTT"
1402387863.626130 [0 127.0.0.1:16660] "EXEC"
1402387863.626253 [0 127.0.0.1:16660] "del" "topic:6:tags"
1402387863.626281 [0 127.0.0.1:16660] "MULTI"
1402387863.626515 [0 127.0.0.1:16660] "del" "nodebbtopicsearch:object:6"
1402387863.626524 [0 127.0.0.1:16660] "EXEC"
```

The key nodebbtopicsearch:object is added and then just being deleted again.
barisusakli 833aa0f738 derp
barisusakli b81f3552bb fixed typo
barisusakli b5071d504f removed timing
barisusakli d4b48cd2ac closes
barisusakli ee88693448 callback
barisusakli b7f71ca0b4 fixes removePostFromTopic
remove the pid from the votes set too
barisusakli bf04749f5e fixes posttools.ismain
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.
psychobunny c5b8a7b163 filter:templates.get_virtual for ajaxifying to virtual templates
Julian Lam 57f40e1e1c Merge pull request from char101/patch-1
Add relative_path to authentication redirects
Julian Lam b44cbc89ad Merge branch 'master' of github.com:Fastinyoh/NodeBB into Fastinyoh-master
Julian Lam 8587dd11d8 closed -- removed that spinner thing npm uses now.
Charles 5f1b1ad2bf Also add relative_path to destination
Because the destination url does not include the relative_path
Charles ce083573a9 Fix typo
Charles f26a250b01 Add relative_path to authentication redirects
dhingey b57dbc37cd Fix relative path URL bugs in the plugin API.
Fixes plugin-related 404 URLs, as well as the plugin directory URL
for installations which use a relative path.
barisusakli 8d0c659f08 small fix to redirect
barisusakli 61b79de3e8 closes
psychobunny a0bdd06a6a filter:user.custom_fields - ability to add custom fields into userData
psychobunny 013f62cd7d action:user.verify & filter:user.verify.code - plugins can now override the verification system
psychobunny 31adf7084d filter:register.complete - plugins can redirect the user elsewhere post-registration
psychobunny 4bb8762746 send in the entire registration form for userData
barisusakli d1c2c87510 fixed double index in post notification
psychobunny 5ac788565f eventEmitter.any
barisusakli e1491e4182 fixed wrong admin tags on admin/user/search
barisusakli 7d0eb9afaa closes
barisusakli 6b93095204 more link fixes
barisusakli efe04c12d3 closes
if email isnt confirmed, show a warning in account/edit and let users
resend confirm email
barisusakli 65e9f68d73 change requireEmail default to off
barisusakli 4aec62f3eb
👼
psychobunny 87a08c9528 closes
barisusakli b537666e5c closes , closes
psychobunny d7eb89336d add logo to windows live tile
psychobunny cf3f33a23d closes
barisusakli 123d1e06f1 closes
barisusakli e20920c536 closes
barisusakli 0574022e02 fixes to infinitescroll
psychobunny c342e75f6e Merge branch 'master' of https://github.com/NodeBB/NodeBB
psychobunny 94312cfda8 closes
psychobunny f6cf36ca29 emit nodebb:ready
psychobunny 646f0f00b3 move "NodeBB Ready" message to when it's actually ready
psychobunny 5891246700 emitter.all
barisusakli 55dbc5c823 closes
changed post links to "topic/<topic_id>/<topic_slug>/<post_id>"
psychobunny aafbb55572 closes
psychobunny ee1e869ccb add loggedIn state to template parsing
barisusakli 4570edb122 closes
barisusakli 364d55938c if no categories found return empty array
psychobunny 257491801d optimizing template compilation
psychobunny c97d6635fc plugin templates now have higher priority than theme templates
psychobunny 28dcb9e33d pair programming ftw
psychobunny a1815b41c7 I still don't know what I'm fixing, I'm just doing as @barisusakli says
psychobunny 7197f9b621 fixes... something, whatever it is @barisusakli
psychobunny f2bf9f9383 fixes for windows (flex) @julianlam
Julian Lam b0464ff912 fixed another hardcoded prefix value
psychobunny bfcd13144e Merge branch 'master' of https://github.com/NodeBB/NodeBB
barisusakli e035d8f1de closes
fixes user images in subfolder installs, if user image has https dont
append relative_path,
also removes relative_path in ajaxify.loadData so it doesnt call
/forum/api/forum/category etc.
psychobunny c7691a8cdc Merge remote-tracking branch 'origin/master' into require.js
Conflicts:
	src/meta.js
Julian Lam b553d44107 plugin source mapping fix -- closes
Julian Lam f8061e23ec source map support, first pass
psychobunny f0811f7a2f added buzz; cleanup
psychobunny f98a52013a Merge remote-tracking branch 'origin/master' into require.js
psychobunny 281aa0049c init, attempt to increase cold load speed
barisusakli 5ae29ef33a fix sitemap
Julian Lam 584fe60284 fixed , redis error handling will go back to crashing the error (though the error will be logged at least)
psychobunny b2b76f701d woops, okay actually fixing it properly this time
psychobunny d5e55d27ed fix for previous commit
psychobunny d81351579d don't require passing in uid for topics.markAsRead
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 0dce8647ba closes
barisusakli eb0a06b777 closes
barisusakli 48aba5fc64 category widget changes
Julian Lam 640500bc5f closed
Julian Lam 93e3eb4d28 fixed
Julian Lam eb2929f497 removing slufigication when checking for group existence
Julian Lam 3baf00208f slugifying group name when checking for existence