3531 Commits (ea2975cb3f267a37f7f8b913840dab703ccd18af)

Author SHA1 Message Date
Julian Lam be8e63cd50 special handling for filter:app.load 11 years ago
barisusakli ef8bbdd359 closes #1864
doing andrew's //todo's since 1991
11 years ago
barisusakli 04c6ca2ebb closes #1862 11 years ago
barisusakli b1e93c4558 fix for wrapper 11 years ago
barisusakli 6e66911ef7 delete unread chats on account delete 11 years ago
barisusakli a4975cab33 closes #1825, closes #1674 11 years ago
barisusakli a69973e7a7 topics.getPids will return mainPid as well 11 years ago
Julian Lam 14d7461252 updated deprecation notice for social network sso icons 11 years ago
Julian Lam 2f9fd620d7 fixed #1849 11 years ago
psychobunny d78fdb1520 more confusing, works perfectably 11 years ago
psychobunny a67e0ea3c2 less confusing 11 years ago
psychobunny de5a564780 hinting 11 years ago
barisusakli 2c890ad609 moved pushUnreadCount 11 years ago
barisusakli e6a5199174 pass router to app.load closes #1845
add a render method to router that forwards it to app
11 years ago
barisusakli 206acab1bf added posted data back whoops 11 years ago
barisusakli afb62c7484 optional timestamp to post.create 11 years ago
psychobunny 803b6f64b8 ability to disable sitemap.xml 11 years ago
psychobunny 704d81fe53 disable category RSS 11 years ago
psychobunny b6a8845d52 disable topic RSS 11 years ago
psychobunny dab44e0768 ability to disable rss feed 11 years ago
Julian Lam 021e31a03a better comments 11 years ago
barisusakli 7212f95582 small fix to routes 11 years ago
Julian Lam 645eb051ec added new hook filter:app.load, and deprecated action:app.load, hopefully fixes #1822 11 years ago
barisusakli 67d5307a8f small change to tag search 11 years ago
psychobunny 08df29e4dd random console.log 11 years ago
barisusakli 90392025e6 small fix to router 11 years ago
barisusakli 6d8cc5648c some tag hooks/filters 11 years ago
psychobunny 9f6c05bb24 closes #1830 11 years ago
barisusakli 42ea8652f1 possible fix for #1830 11 years ago
Aziz Khoury ed7631cab5 tab indent fix 11 years ago
Aziz Khoury d1f97723e7 Group.join() callback made optional 11 years ago
barisusakli 943f3814e5 closes #1813 11 years ago
barisusakli e036c20072 closes #1808 11 years ago
barisusakli 61f7f0f889 fixed file upload checks 11 years ago
barisusakli ebaf8df0a9 #1824 11 years ago
barisusakli fcd460438d closes #1824 11 years ago
barisusakli d3312f1b8e fixer or in jobs and users redefinition 11 years ago
barisusakli 633980ce4b active users cleanup 11 years ago
barisusakli 0362c1a3b0 show day/week/month/year popular topics 11 years ago
barisusakli b2ece27263 topic post hook 11 years ago
psychobunny 1d8aeda9c2 closes #1814 11 years ago
Julian Lam 84832f57cc firing action:settings.set hook AFTER the object is saved in the db. What was I thinking?! 11 years ago
dhingey 9d45373b59 Change user.delete hook from action to filter
The user.delete hook is now a filter, giving plugins a chance to access
the user's data before it's deleted from Redis.
11 years ago
psychobunny 5b6acbad1e optimized widget call by bundling all queries into one for #1428; fixes active users widget crash
also fixes b3819fd076 properly
11 years ago
barisusakli 9fbd535b79 fixes vote buttons on infinite scroll and new posts 11 years ago
psychobunny b3819fd076 temporary fix for acp, need to reconsider how I'm doing this 11 years ago
psychobunny 4cbe97a466 don't need this file anymore 11 years ago
psychobunny c6183f1a82 closes #1428 11 years ago
barisusakli 9d7a8fcc0b getSortedSetRevRangeWithScores 11 years ago
barisusakli b5df5c0a91 closes #1562, level session 11 years ago
barisusakli 53d68be7c0 level sortedSetsRemove 11 years ago
barisusakli 0f5c1d1892 added messaging hook #1798 11 years ago
barisusakli 75bf9e62be cleaned languages.js 11 years ago
Julian Lam dae2e14aac epic hax to make the chat message list resize #1788 11 years ago
Julian Lam 4404387218 Merge branch 'master' into chat-route 11 years ago
psychobunny 46d3e4a6eb undo 11 years ago
psychobunny 0c55417df2 purge topic if it's the post is purged in that topic 11 years ago
Julian Lam 7b3159292f added some utility functions for #1798, fixed chat notifications bodyLong value 11 years ago
dhingey f7372ba8d5 Added a hook: action:user.delete
Allows plugins to access the uid of the user being deleted.
11 years ago
Julian Lam 71916f0691 marathon bugfixing with @barisusakli re: #1788 11 years ago
barisusakli 5497b8c419 striptags 11 years ago
barisusakli 64d04f7aa6 closes #1803 11 years ago
Julian Lam d9cdd2f165 limiting recent chats to 20 11 years ago
Julian Lam 13e4e8dad7 a couple final tweaks to contact list and such... #1788 11 years ago
Julian Lam ac9f104b39 Merge remote-tracking branch 'origin/chat-route' into chat-route
How in the seven hells do I manage to conflict myself?

Conflicts:
	public/src/forum/chats.js
	public/src/modules/chat.js
	src/middleware/middleware.js
11 years ago
Julian Lam 1db96dc627 typing notifcation socket implementation for chat page, #1788 11 years ago
Julian Lam 84e046185b WIP 11 years ago
Julian Lam 4d85df5bae issue #1788 - start 11 years ago
Julian Lam 404ab4878b typing notifcation socket implementation for chat page, #1788 11 years ago
barisusakli bc257c1c10 removed dupe version 11 years ago
Julian Lam d18461c8eb wtf. Merge remote-tracking branch 'origin/chat-route' into chat-route
Conflicts:
	public/language/en_GB/modules.json
	src/controllers/accounts.js
	src/middleware/middleware.js
	src/routes/index.js
11 years ago
Julian Lam 89dc8c490a WIP 11 years ago
barisusakli 43c1787754 dont exist if cant parse css 11 years ago
barisusakli 37b73e1c02 cleaner mongo setRemoveRandom 11 years ago
Julian Lam 0dad7adb8d issue #1788 - start 11 years ago
Julian Lam b03bb3a32b issue #1788 - start 11 years ago
barisusakli 5097526ae0 pass express app to plugins, closes #1789 11 years ago
barisusakli f288f80da6 meta.js refactor 11 years ago
barisusakli 80cb0cf7e0 plugins.js jslint 11 years ago
psychobunny ddcca28cf0 pass allowRegistration in login API for #1786 11 years ago
barisusakli 3e75a4397a fixes guest post data in topics 11 years ago
barisusakli dcbed4e935 closes #1763
show alert if email not confirmed, clicking alert will send confirmation
email
11 years ago
barisusakli 586aeaf53f added error checking to install.js for categories 11 years ago
barisusakli 5ea74ae9e9 closes #1776 11 years ago
barisusakli 119d13053d move static to end 11 years ago
barisusakli ec1196d288 use router for relative path 11 years ago
barisusakli 38494a2af0 pass in session directly 11 years ago
barisusakli 78c977e8f6 removed trailing slash 11 years ago
barisusakli 9e8584eee7 uploads 11 years ago
barisusakli 24ebf20d7e first commit 11 years ago
barisusakli 4b005a4037 crash fix 11 years ago
barisusakli e6c9647acf display user post topic stats in admin index 11 years ago
barisusakli 9a4e6aa01c closes #1774 11 years ago
barisusakli 6389bc762c fire post edit after hook after post is saved 11 years ago
barisusakli c29dcc0ec9 fire topic edit action after topic is saved 11 years ago
barisusakli b8b6ae7b2f moved upload route into API namespace 11 years ago
barisusakli b41b311d94 another eachLimit 11 years ago
Julian Lam ffd2ddc3e7 Revert "moved meta up"
This reverts commit 8c9feb85a4.
11 years ago
Julian Lam cda3f9376d updated error text to show proper setup command 11 years ago
barisusakli 5ec289eee2 closes #1769 11 years ago
barisusakli efcc42f170 added eachLimit to upgrade script 11 years ago
barisusakli 8c9feb85a4 moved meta up 11 years ago
barisusakli 82a1215128 setOnEmpty 11 years ago
barisusakli 9aacb5e259 remove dupe code 11 years ago
barisusakli 24aa166ed5 dont error when no teaser data 11 years ago
barisusakli d57f183f42 privileges.posts.get takes an array of pids now 11 years ago
barisusakli 6cd29a31a4 removed timing 11 years ago
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
11 years ago
barisusakli d3fc71529a callback 11 years ago
barisusakli a9e5e82431 closes #1758 11 years ago
Julian Lam 46f9a7860c applying translator to messages. 11 years ago
psychobunny 92c0bd07c9 Ability to enable/disable the upvote/downvote system, closes #1672 11 years ago
psychobunny b040201764 prevent hax voting via websockets if system disabled 11 years ago
psychobunny a2f85648c5 allow voting system to be disabled 11 years ago
barisusakli 1cabf885a2 closes #1730
postCount != lastPostIndex unfortunately, that will need some rethinking
11 years ago
barisusakli 49a9601a04 closes #1752 11 years ago
psychobunny b3c9323026 use admin setting for downvote privileges, closes #1757 11 years ago
psychobunny 8a03b42d62 prevent a user from downvoting if at negative rep 11 years ago
psychobunny 6685e140c3 pass err through 11 years ago
psychobunny f4955ffb8d closes #1729 11 years ago
psychobunny 0e92c7ed94 use templates.js module instead 11 years ago
barisusakli f80b3c3b66 simpler union 11 years ago
barisusakli 7f534cc7b8 sorted set refactor 11 years ago
Barış Soner Uşaklı 2d734c1648 fixed move recent replies 11 years ago
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
11 years ago
barisusakli c191aa079f closes #1735 11 years ago
barisusakli c642493bce guest post fix 11 years ago
barisusakli e6d8e9c959 searchIndex callbacks 11 years ago
barisusakli 1296cd58b9 closes #1723 11 years ago
barisusakli 3c3ad7d115 closes #1728 11 years ago
barisusakli bd4722665d closes #1725
removed move button from main post, disable moving main post, fixed
moving posts.
11 years ago
barisusakli 9af12819e3 closes #1731 11 years ago
barisusakli a9adfe9428 fix crash in topic move 11 years ago
barisusakli 0987aed0e6 callback undefined error 11 years ago
psychobunny f6838ef51e only use passport.authenticate if a strategy url is defined 11 years ago
barisusakli b7e04239e9 use water in post edit 11 years ago
barisusakli ab6429c578 closes #1734 11 years ago
barisusakli 78509b4ad0 use sortedSetsRemove to remove tid from tags 11 years ago
barisusakli fd12ec763a sortedSetsRemove
instead of calling sortedSetRemove() one at a time for each id remove
value from multiple sortedSets with one db call
11 years ago
barisusakli a4d4e53f45 speed up category purge
using eachLimit
dont emit stats on every topic delete
11 years ago
barisusakli dceeed22f7 closes #1724 11 years ago
Julian Lam 458e294293 switched validator library out in favour of String lib 11 years ago
Julian Lam d229cd21b2 parsing the post content that's passed into bodyLong in notifs #1720 11 years ago
Julian Lam c41bb05711 final pass #1720, closed #1720 11 years ago
Julian Lam d257632878 first pass #1720, updating existing calls to notifications.create, backwards compatibility in case plugins create notifications too. 11 years ago
Julian Lam a3d01aea58 added error handling if bad LESS is written in ACP. closes #1715 11 years ago
barisusakli 13854e8774 closes #1603 11 years ago
barisusakli 03ec1c3216 added group.hide back into groups.join 11 years ago
Julian Lam b1faca3614 saving portless hostNAME into server config, not the host! Argh. closed #1713 11 years ago
Julian Lam adc2fcc649 added deserialize library to frontend 11 years ago
barisusakli f8afb8da3e allow plugins to add new links to user profile menu 11 years ago
Julian Lam 6f218857cb added connect-flash package. npm also alphabetically re-ordered the deps... thanks npm? 11 years ago
Julian Lam dedc6d8154 added new hook for notification pushing 11 years ago
barisusakli 15c16c2502 closes #1311, set category post counts to 0 before starting upgrade 11 years ago
barisusakli 7c84680b06 closes #1709 11 years ago
Charles b811bef42c Don't decrease postCount when purging post from a deleted topic 11 years ago
Charles 1448bed057 Remove console.log 11 years ago
Charles 31f1914ec8 Update global postCount when deleting/restoring topic 11 years ago
psychobunny 0c7a8b3908 no need to reset global widget areas, closes #1701 11 years ago
barisusakli 2479a34c56 closes #1710, closes #1700 11 years ago
psychobunny db3523b10b #1701 11 years ago
barisusakli 3c44beb4bb group userTitle default 11 years ago
psychobunny d2e1cc3371 Merge pull request #1707 from char101/PR/dont-reset-widgets-on-changing-skins
Don't reset widgets when changing skin
11 years ago
Charles 0cba152516 Redirect to category after purging topic 11 years ago
Charles 51fb7786f5 Don't reset widgets when changing skin 11 years ago
barisusakli 39886c8545 removed unread total route 11 years ago
barisusakli d1b4efeaa3 filter files before minify, removed unused ctime 11 years ago
barisusakli ab80016910 fixed group hide for privilege groups 11 years ago
barisusakli 1908f7b57a filter missing less and css files from plugins 11 years ago
barisusakli 3bd4d0e418 closes #1692 11 years ago
barisusakli 07275b5fc4 some checks to make last admin isnt removed 11 years ago
barisusakli 842a1f90cf fix crash on push 11 years ago
barisusakli 42d03cc491 closes #1678 11 years ago
barisusakli 9d4f1e18e1 #1688 removed length check 11 years ago
barisusakli cd5c24efe3 possible fix for #1688 11 years ago
barisusakli 4c2765a79c closes #1679 11 years ago
barisusakli ce1934e566 closes #1684 11 years ago
barisusakli 3b1e373e7b group titles 11 years ago
barisusakli e8b89513d4 some cleanup in addUserInfoToPost 11 years ago
barisusakli b9139ef263 some escaping and fixed uploads in progress 11 years ago
psychobunny b12ca5ab9f closes #1673 11 years ago
barisusakli 870bf95e5b deleted topic feed fix 11 years ago
psychobunny eeabae5738 closes https://github.com/NodeBB/NodeBB/issues/1668 11 years ago
barisusakli 4fa79dc821 closes #1281
category purge, deletes all topics and posts in the category
11 years ago
barisusakli 311a7ad5b9 #1281 topic purge 11 years ago
psychobunny 2688ea9733 upgrading topics take a while, so let the user know 11 years ago
barisusakli a65d612907 #1281 post purge 11 years ago
barisusakli eb1b48092d closes #1666 11 years ago
psychobunny e5d465392f closes #1639 11 years ago
psychobunny 8443ae58ff users.getXbyEmail - lowercase before searching 11 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.
11 years ago
barisusakli 833aa0f738 derp 11 years ago
barisusakli b81f3552bb fixed typo 11 years ago
barisusakli b5071d504f removed timing #1654 11 years ago
barisusakli d4b48cd2ac closes #1654 11 years ago
barisusakli ee88693448 callback 11 years ago
barisusakli b7f71ca0b4 fixes removePostFromTopic
remove the pid from the votes set too
11 years ago
barisusakli bf04749f5e fixes posttools.ismain 11 years ago
barisusakli d32dfd98b7 remove main post if page is greater than 1
this fixes pagination after the main post change
11 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.
11 years ago