3392 Commits (82ffaad93953e482cff705daf3313c397ba3c44e)

Author SHA1 Message Date
psychobunny 8443ae58ff users.getXbyEmail - lowercase before searching 12 years ago
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.
12 years ago
barisusakli 833aa0f738 derp 12 years ago
barisusakli b81f3552bb fixed typo 12 years ago
barisusakli b5071d504f removed timing #1654 12 years ago
barisusakli d4b48cd2ac closes #1654 12 years ago
barisusakli ee88693448 callback 12 years ago
barisusakli b7f71ca0b4 fixes removePostFromTopic
remove the pid from the votes set too
12 years ago
barisusakli bf04749f5e fixes posttools.ismain 12 years ago
barisusakli d32dfd98b7 remove main post if page is greater than 1
this fixes pagination after the main post change
12 years ago
barisusakli 7610c11cd1 closes #450
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.
12 years ago
psychobunny c5b8a7b163 filter:templates.get_virtual for ajaxifying to virtual templates 12 years ago
Julian Lam 57f40e1e1c Merge pull request #1648 from char101/patch-1
Add relative_path to authentication redirects
12 years ago
Julian Lam b44cbc89ad Merge branch 'master' of github.com:Fastinyoh/NodeBB into Fastinyoh-master 12 years ago
Julian Lam 8587dd11d8 closed #1653 -- removed that spinner thing npm uses now. 12 years ago
Charles 5f1b1ad2bf Also add relative_path to destination
Because the destination url does not include the relative_path
12 years ago
Charles ce083573a9 Fix typo 12 years ago
Charles f26a250b01 Add relative_path to authentication redirects 12 years ago
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.
12 years ago
barisusakli 8d0c659f08 small fix to redirect 12 years ago
barisusakli 61b79de3e8 closes #1641 12 years ago
psychobunny a0bdd06a6a filter:user.custom_fields - ability to add custom fields into userData 12 years ago
psychobunny 013f62cd7d action:user.verify & filter:user.verify.code - plugins can now override the verification system 12 years ago
psychobunny 31adf7084d filter:register.complete - plugins can redirect the user elsewhere post-registration 12 years ago
psychobunny 4bb8762746 send in the entire registration form for userData 12 years ago
barisusakli d1c2c87510 fixed double index in post notification 12 years ago
psychobunny 5ac788565f eventEmitter.any 12 years ago
barisusakli e1491e4182 fixed wrong admin tags on admin/user/search 12 years ago
barisusakli 7d0eb9afaa closes #1463 12 years ago
barisusakli 6b93095204 more link fixes 12 years ago
barisusakli efe04c12d3 closes #1635
if email isnt confirmed, show a warning in account/edit and let users
resend confirm email
12 years ago
barisusakli 65e9f68d73 change requireEmail default to off 12 years ago
barisusakli 4aec62f3eb #1636
👼
12 years ago
psychobunny 87a08c9528 closes #1636 12 years ago
barisusakli b537666e5c closes #1592, closes #1634 12 years ago
psychobunny d7eb89336d add logo to windows live tile 12 years ago
psychobunny cf3f33a23d closes #1633 12 years ago
barisusakli 123d1e06f1 closes #1578 12 years ago
barisusakli e20920c536 closes #1630 12 years ago
barisusakli 0574022e02 fixes to infinitescroll 12 years ago
psychobunny c342e75f6e Merge branch 'master' of https://github.com/NodeBB/NodeBB 12 years ago
psychobunny 94312cfda8 closes #1595 12 years ago
psychobunny f6cf36ca29 emit nodebb:ready 12 years ago
psychobunny 646f0f00b3 move "NodeBB Ready" message to when it's actually ready 12 years ago
psychobunny 5891246700 emitter.all 12 years ago
barisusakli 55dbc5c823 closes #1612
changed post links to "topic/<topic_id>/<topic_slug>/<post_id>"
12 years ago
psychobunny aafbb55572 closes #1616 12 years ago
psychobunny ee1e869ccb add loggedIn state to template parsing 12 years ago
barisusakli 4570edb122 closes #1623 12 years ago
barisusakli 364d55938c if no categories found return empty array 12 years ago
psychobunny 257491801d optimizing template compilation 12 years ago
psychobunny c97d6635fc plugin templates now have higher priority than theme templates 12 years ago
psychobunny 28dcb9e33d pair programming ftw 12 years ago
psychobunny a1815b41c7 I still don't know what I'm fixing, I'm just doing as @barisusakli says 12 years ago
psychobunny 7197f9b621 fixes... something, whatever it is @barisusakli 12 years ago
psychobunny f2bf9f9383 fixes for windows (flex) @julianlam 12 years ago
Julian Lam b0464ff912 fixed another hardcoded prefix value 12 years ago
psychobunny bfcd13144e Merge branch 'master' of https://github.com/NodeBB/NodeBB 12 years ago
barisusakli e035d8f1de closes #1497
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.
12 years ago
psychobunny c7691a8cdc Merge remote-tracking branch 'origin/master' into require.js
Conflicts:
	src/meta.js
12 years ago
Julian Lam b553d44107 plugin source mapping fix -- closes #1609 12 years ago
Julian Lam f8061e23ec source map support, first pass 12 years ago
psychobunny f0811f7a2f added buzz; cleanup 12 years ago
psychobunny f98a52013a Merge remote-tracking branch 'origin/master' into require.js 12 years ago
psychobunny 281aa0049c init, attempt to increase cold load speed 12 years ago
barisusakli 5ae29ef33a fix sitemap 12 years ago
Julian Lam 584fe60284 fixed #1554, redis error handling will go back to crashing the error (though the error will be logged at least) 12 years ago
psychobunny b2b76f701d woops, okay actually fixing it properly this time 12 years ago
psychobunny d5e55d27ed fix for previous commit 12 years ago
psychobunny d81351579d don't require passing in uid for topics.markAsRead 12 years ago
psychobunny 791fde7904 fixing #1587 properly for unread count 12 years ago
psychobunny 0334a487b5 fixing #1587 properly for profile views 12 years ago
psychobunny 74097be2e4 additional fix for #1587 12 years ago
psychobunny fee591e551 fixes #1587 12 years ago
psychobunny bfa3b0f22f global header widgets 12 years ago
barisusakli 9c0446d416 closes #1593 12 years ago
barisusakli 0dce8647ba closes #1476 12 years ago
barisusakli eb0a06b777 closes #1577 12 years ago
barisusakli 48aba5fc64 category widget changes 12 years ago
Julian Lam 640500bc5f closed #1437 12 years ago
Julian Lam 93e3eb4d28 fixed #1584 12 years ago
Julian Lam eb2929f497 removing slufigication when checking for group existence 12 years ago
Julian Lam 3baf00208f slugifying group name when checking for existence 12 years ago
Julian Lam 8efb930ec0 site title fallbacks for daily digest titles 12 years ago
barisusakli e685e7c376 removed console.log 12 years ago
barisusakli 4e8a9fbe27 closes #1582 12 years ago
Julian Lam 753779296b increased sitemap cache time -- #1578 12 years ago
Julian Lam d948f2a29d moved login via email detection into the internal login block 12 years ago
barisusakli 18810e7203 allow dots in tags 12 years ago
barisusakli 9079d7f26f fix create tags crash if no callback is passed 12 years ago
Julian Lam b1eb5b175c Merge remote-tracking branch 'origin/master' into groups-pages
Conflicts:
	src/topics/tags.js
12 years ago
barisusakli 1a753bf64d fixes forking
if there are no tags just return
12 years ago
Julian Lam d74de798fc removing backwards compatibility fixed in preparation for 0.5.0. Prepare for stuff to break!!!!! 12 years ago
barisusakli e505a9a6ac changed order of cleanup 12 years ago
barisusakli b7fcde446b proper score aggregation #1562 12 years ago
barisusakli 5e51895982 Merge branch 'master' of https://github.com/designcreateplay/NodeBB 12 years ago
barisusakli 7585b72644 remove duplicates 12 years ago
psychobunny 4cd86affae update all files with new url 12 years ago
barisusakli dbf07f786d closes #1565 12 years ago
barisusakli b32bb76429 #1562 12 years ago
Julian Lam f20926f93d finished up group list and group details pages - closed #1563 12 years ago
Julian Lam 7afe3bea59 added getSortedSetRevUnion... just because. 12 years ago
Julian Lam 6e597a9cdb fixed tests, and added getSortedSetUnion method to redis db, added test for new redis method 12 years ago
Julian Lam 7425b72245 most of the work for #1563 12 years ago
Julian Lam 7bdbb966aa groups pages WIP 12 years ago
barisusakli 66701afdaa closes #1559
fixes the notification image too, the property was called image not
picture
12 years ago
barisusakli ee1495a44d fixes reply/quote buttons on new posts 12 years ago
barisusakli e003582289 fixes redirect loop for empty slugs 12 years ago
barisusakli b8b482e287 closes #1555 12 years ago
barisusakli fa1275c03a closes #1557 12 years ago
barisusakli 746df87d89 upgrade tags to sorted set 12 years ago
barisusakli 853acaa6c7 closes #1558 12 years ago
Julian Lam 8a510c340b limiting user and group creation so that their slugs can't intersect. 12 years ago
barisusakli 51e07e197b added isSelf to account route 12 years ago
barisusakli 3f43db090b return topics tags #1557 12 years ago
barisusakli 87fe5bf1bb delete tag if it has no topics left 12 years ago
barisusakli 56f442f283 remove punctuation and limit tag length 12 years ago
barisusakli d8fd29581e deleting a user will delete topic tags too 12 years ago
barisusakli df73ceaeb7 closes #1556
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
12 years ago
Julian Lam 1d7c293197 added option to remove ephemeralGroups from groups listing 12 years ago
Julian Lam 3849b2d6b3 added pushGroup method to notifications object #1331 12 years ago
barisusakli dfa1150709 fix missing category data 12 years ago
barisusakli c7c54560bc fixes going into deleted topics for admins 12 years ago
barisusakli 1e68974f50 small refactor 12 years ago
Julian Lam 9bb13a0d29 closed #1552 12 years ago
barisusakli 4397b7ab4b removed meta.scripts.get warning #1544 12 years ago
barisusakli 05872ad458 closes #1545 12 years ago
barisusakli cd08a16f77 return post count to with categories 12 years ago
Aziz Khoury 8d6a8dc928 filter:register.build now returns what it was passed, in order. fixes #1540, we seriously need to consider standarizing the hooks arguments, maybe some ideas here #1527 12 years ago
barisusakli 5cf9b0a3bd fix feed crash 12 years ago
Julian Lam 2e49fe9f50 fixed meta property to name, for keywords 12 years ago
barisusakli 472e6b5206 privilege cleanup 12 years ago
Julian Lam e43ebb0423 Merge pull request #1533 from akhoury/master
captcha support
12 years ago
Julian Lam 5f89293301 upgrade script for #1282 12 years ago
Julian Lam b1534b7798 removing allowGuestPosting logic in NodeBB 12 years ago
Julian Lam 3474cdc5ea added new privilege "find", added guest meta group, closed #1282 12 years ago
Julian Lam c297e2f2f8 ephemeral groups - guests 12 years ago
Aziz Khoury 0e0f66ba9e minor cleanups. 12 years ago
Aziz Khoury d3a11f7ad8 Merge remote-tracking branch 'upstream/master' 12 years ago
barisusakli b1aae05a08 closes #1518 12 years ago
barisusakli 29420d6f82 fixed indents 12 years ago
barisusakli 3e86bdb38f more work on #1518
still needs more work, category is next
12 years ago
barisusakli 822cf56af1 Merge branch 'master' of https://github.com/designcreateplay/NodeBB 12 years ago
barisusakli 292e4bbdd6 fixed post privilege privilege 12 years ago
Aziz Khoury bab88893f1 changing 'filter:register.check' hook signature to provide req, res and data 12 years ago
Aziz Khoury aff3c9558a hook error print to console in dev env 12 years ago
Aziz Khoury 61a5d4768a global var 12 years ago
Aziz Khoury 086013829b added 'filter:register.build' hook to augment register template data 12 years ago
psychobunny 9040813b0d closes #1530 12 years ago
psychobunny a5a2e6f04e update BS brand colors in ACP 12 years ago
barisusakli 4234057821 first pass for #1518
this only handles postTools privileges, topic and category will follow
12 years ago
psychobunny ec5cdd178a added function to update branding colors 12 years ago
psychobunny 70b5f9addc some regex to scour the CSS and figure out the branding colors 12 years ago
barisusakli f29dda4b92 fixed 1 more 12 years ago
barisusakli 3643fbc212 fixes 2 privilege issues 12 years ago
Julian Lam 66225237a0 view_deleted fix for privs 12 years ago
Julian Lam 34b522f36d missed a bunch of "editable" checks 12 years ago
barisusakli ac65655384 fixed missing return 12 years ago
Julian Lam 6604a29f74 upgrade script for new privilege system 12 years ago
Julian Lam b5d4e62e70 fixed bug in privileges system, thanks TravisCI! 12 years ago
Julian Lam 759775ecbe Merge remote-tracking branch 'origin/master' 12 years ago
Julian Lam 87f4566e06 more fixed to privs, and ACP modal 12 years ago
Julian Lam d54ecea506 more privilege changes 12 years ago
Julian Lam 7c8b442dcd more updates to privileges revamp 12 years ago
Julian Lam 72ca0d6d40 got privilege selection working for users and groups 12 years ago
barisusakli 4f11ac9664 fixed missing comma 12 years ago
barisusakli da72924187 removed duplication 12 years ago
psychobunny 97d256c372 cleanup 12 years ago
barisusakli c5d9a68b4b closes #1445 12 years ago
barisusakli fc00586f0e 0 disables flags for ban 12 years ago
barisusakli c7744d7a64 closes #1483 12 years ago
psychobunny 3c7b433e3a linting settings.js 12 years ago
frissdiegurke b1257f6291 fix call of expandObjBy with undefined 12 years ago
barisusakli 1a9ab9d1d2 fixes default gravatar images if they are uploaded locally 12 years ago
barisusakli 78ccca4f63 removed comment 12 years ago
psychobunny 2b4da7ebcd Merge pull request #1514 from frissdiegurke/master
added number-type to settings framework. persist expanded object on serv...
12 years ago
Julian Lam e64c1bfec3 closed #1453 12 years ago
Julian Lam bab140c396 added pexpire and pexpireAt methods for redis and mongo. Added emoticons for leveldb (as per existing implementation by @psychobunny LOL) 12 years ago
Julian Lam 4e0ccbf0c6 fixed #1515 12 years ago
Julian Lam 65dd79c84e socket logic for #1149 -- handling of help tab in ACP 12 years ago
barisusakli f65998f4c2 fixes guest name on home 12 years ago
FrissDieGurke ab2c0cfa9f added number-type to settings framework. persist expanded object on server-side sync if changed 12 years ago
barisusakli 43bbc00be8 closes #1512
spaces are required
12 years ago
barisusakli d304bab4f1 dont change height if sizing horizontally #1508 12 years ago
Julian Lam 2dd2d7a269 defaulting daily digest frequency to null -- digests should be opt IN, not OUT. Bad idea on my part... re: #1499 12 years ago
psychobunny 10716c37d3 closes #1376 12 years ago
barisusakli 7280567d21 closes #1505 12 years ago
barisusakli ed57edde3b fixed undefined next 12 years ago
barisusakli efaa1e62c1 added back ttl :) 12 years ago
barisusakli 672bde7066 removed ttl 12 years ago
barisusakli 62d487e0a8 use current user uid for feed generation 12 years ago
Julian Lam b56df975e0 fixed 1495 12 years ago
barisusakli 883978007d closes #1482
removed updateHeader, the header is using template values in from the
api, update menu partial in vanilla theme as well
12 years ago
barisusakli 1f7fd51b40 some work for #1482 12 years ago
barisusakli 57f0ee8a38 removed whitespace 12 years ago
barisusakli 7a25f0bb36 fix for #1496 12 years ago
psychobunny 14db999684 closes #1494 12 years ago
barisusakli f89afd92b9 fix for plugin page access issue closes #1493 12 years ago
barisusakli 89225c80ca related to #1493 12 years ago
Julian Lam 08cf6bc5e6 fixed #1489 -- made checkReplace error-first, added missing callback, added missing object field to db query 12 years ago
psychobunny b3940cd7cd enabling view cache, since we require server restart on theme changes it doesn't hurt 12 years ago
barisusakli 967b486ce1 closes #1487
ban and delete user admin actions takes an array of uids now.
12 years ago
Julian Lam 590082709f fixed #1488 - emails are processed 100 at a time 12 years ago
psychobunny dfe010d97d caps 12 years ago
psychobunny 14431f7913 closes #1486 12 years ago
psychobunny 8fc818e07c closes https://github.com/designcreateplay/NodeBB/issues/1473 12 years ago
psychobunny 38a3ab6365 fixes routes for https://github.com/designcreateplay/NodeBB/issues/1485 12 years ago
psychobunny a51b357e67 removed deprecated categories.background property 12 years ago
psychobunny be16f0dae7 Merge pull request #1484 from frissdiegurke/master
Settings Framework docs + slight changes
12 years ago
barisusakli d272a87c8a cleanup toggleFollow 12 years ago
barisusakli 8afcf44732 gravatars will be generated on demand
changing the setting in ACP will affect all default gravatars now.
12 years ago
barisusakli 6f40393b99 added err check 12 years ago
FrissDieGurke c4606e7009 minified settings-framework wrapper-length 12 years ago
FrissDieGurke c23df60e1b removed unnecessary method + doc within Settings Framework 12 years ago
barisusakli d43d363a7a refactored topics.js
removed ajaxify.register_events using removeListener now
12 years ago
psychobunny 6f0e749b60 Merge pull request #1462 from frissdiegurke/master
added new settings-system
12 years ago
Erik Schamper 849db3b858 Add a return statement to the callback
To prevent a "callback already called".
12 years ago
psychobunny 531ad4dec1 action:settings.set 12 years ago
Julian Lam 90269ad9b8 fixed bad example code 12 years ago
Julian Lam a5410f7ae7 added stub plugins socket file for plugin usage (ping @schamper @frissdiegurke @akhoury @psychobunny @barisusakli) 12 years ago
Julian Lam 970b259e06 fixed #907 12 years ago
psychobunny 65565e187b simplified the above to action.user.set instead 12 years ago
psychobunny 75baf28530 added action:user.decremented and action:user.incremented hooks 12 years ago
psychobunny 271843d417 closes #1385 12 years ago
barisusakli 3ecd523799 added jquery ui datepicker 12 years ago
Ole Reglitzki d76ba519d4 added new settings-system 12 years ago
barisusakli 63d88957a8 replace self links client side 12 years ago
barisusakli c8efeb7d7c closes #1400, bunch of other fixes to 404, 403 in accounts 12 years ago
barisusakli af6a40e23c use thumb directly 12 years ago
barisusakli 75824c0d81 dont send notifications for guests 12 years ago
psychobunny bb12ebac48 closes #1442 12 years ago
barisusakli b88df6420d check err 12 years ago
Julian Lam b049bd466c added 'config.version' to client-side 12 years ago
Julian Lam e65896351a checkReplace typo 12 years ago
barisusakli 3552678645 use id as name like others 12 years ago
barisusakli dde872d6d5 log user ip register 12 years ago
barisusakli a329fcadaa possibly fixes #1454 12 years ago
barisusakli fdfd421e1c fixes error during user delete and ban 12 years ago
psychobunny 45195aa59a for https://github.com/designcreateplay/NodeBB/issues/1393 12 years ago
barisusakli 5f7ed289de print stack on db error 12 years ago
psychobunny 1996c8ad49 fixing less imports on windows 12 years ago
barisusakli ee12b4fd3e removed duplication in uploads 12 years ago
barisusakli 8ce3e44d7b closes #1418 12 years ago
barisusakli 53021d31b0 closes #1446 12 years ago
barisusakli fa8cdce748 closes #1448 12 years ago
barisusakli 1d1d677b56 closes #1422 12 years ago
Julian Lam a32fd3f6f9 fixed #1222 12 years ago
barisusakli cd3bb77a7f added reqFromSocket to topic posting
new filter topic.post
12 years ago
barisusakli c9551abc5d closes #1432
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
12 years ago
psychobunny 066b1c0d64 @akhoury and his comments.. :p + jshinting 12 years ago