68 Commits (9d562a87081cd411d010535e405f152b62a317d7)

Author SHA1 Message Date
psychobunny 9cdc2e5a2d closes #3147 properly 10 years ago
psychobunny 93170ca106 closes #3147 10 years ago
Julian Lam fc1b0c8d24 allowing topic, post, and user creation to specify a timestamp for insertion into the past 10 years ago
barisusakli 1f06f90a50 closes #3051
updated lru to latest
created new files posts/cache.js posts/parse.js posts/edit.js
10 years ago
barisusakli 1910fdb977 fix xss on guest handles, make sure guest handlers arent longer than max username length 10 years ago
psychobunny 70bf518a02 define all required data at top of fn 10 years ago
barisusakli b268927cf9 removedu if from filter:parse,post, parse strip teaser content 10 years ago
barisusakli 38726243fe closes #2879 10 years ago
Barış Soner Uşaklı 8234e4cc07 new hook action:topic.reply
only fires on normal replies
10 years ago
barisusakli fbcc7c4bc3 closes #2634 10 years ago
barisusakli 255f50343c closes #2685 10 years ago
barisusakli 6ccdf187ea closes #2595 10 years ago
barisusakli 7b49effc14 minor tweaks 10 years ago
Julian Lam 23b9b21cdd better handling of guest handles in frontend, #2569 10 years ago
Julian Lam 325815a78d showing guest handles in frontend UI #2569 10 years ago
barisusakli f2b24eb72a fix tests 10 years ago
barisusakli ef3b6a2450 closes #2498 10 years ago
barisusakli 2579d2535d closes #2396 10 years ago
barisusakli 642136f6f8 closes #2357 10 years ago
barisusakli 1ae39d638a closes #2356 10 years ago
Julian Lam a12907512f refactored a bunch of methods so that you can pass in an author argument in querystring to see posts by just that author, #2355 10 years ago
barisusakli 595ff1f4b1 closes #2303
see
https://community.nodebb.org/topic/3039/filter-post-parse-and-filter-post-parsesignature-changes
10 years ago
barisusakli 6802bf7ce9 closes #2284 10 years ago
barisusakli 9e8be432b3 notification changes
-only send a notification when the person you follow creates a topic
-you still get a notification per post if you are following a topic
-changed notifications.push so that it sends the notifications over a
period of time, currently to 50 users per second
-optimized topics.notifyFollowers and
user.notifications.sendTopicNotification, they no longer query the
database for the topic and post data instead they get it as params
-you can no longer follow yourself :)
-changed mongo sortedSetRemove so that it doesn't use $in if there is
only a single value to remove
10 years ago
psychobunny d632ba2242 fix post crash from 712bd3938f 10 years ago
barisusakli 712bd3938f parse post in Topics.reply not in Posts.create
makes importer faster if md plugin is enabled
10 years ago
barisusakli 327d1c1bec some cleanup and callbacks for post 11 years ago
barisusakli 01f983e29c markAsRead improvement
takes in an array of tids instead of marking topics read 1 by 1
same for the category.markAsRead function
11 years ago
barisusakli 10b30e303b mongo posting fix 11 years ago
barisusakli 74282ffeea removed another unnecessary socket call 11 years ago
barisusakli 05fdc945f3 closes #1993 11 years ago
barisusakli c9c454825e closes #1369 11 years ago
barisusakli e420ee5fb6 privilege fix for single category check 11 years ago
barisusakli fed8cc6d53 optimize privileges and assorted fixes.
* new methods
privileges.categories.filter
privileges.topics.filter
privileges.posts.filter

they take a list of ids and a privilege, and return the filtered list of
ids, faster than doing  async.filter and calling the db for each id.

* remove event listeners on recent page before adding
* group.exists works for both single group names and arrays
* helpers.allowedTo works for both a single cid and an array of cids
* moved filter:topic.post hook right before topic creation.
* moved filter:topic.reply hook right before topic reply.
11 years ago
barisusakli f31978aa2c moved core notifications all the way to the end 11 years ago
barisusakli 82ffaad939 parseint 11 years ago
barisusakli 2c890ad609 moved pushUnreadCount 11 years ago
barisusakli b2ece27263 topic post hook 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 4c2765a79c closes #1679 11 years ago
barisusakli e8b89513d4 some cleanup in addUserInfoToPost 11 years ago
barisusakli b9139ef263 some escaping and fixed uploads in progress 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
barisusakli 55dbc5c823 closes #1612
changed post links to "topic/<topic_id>/<topic_slug>/<post_id>"
11 years ago
barisusakli 746df87d89 upgrade tags to sorted set 11 years ago
barisusakli 56f442f283 remove punctuation and limit tag length 11 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
11 years ago
barisusakli 472e6b5206 privilege cleanup 11 years ago
barisusakli b1aae05a08 closes #1518 11 years ago
barisusakli 3e86bdb38f more work on #1518
still needs more work, category is next
11 years ago