Commit Graph

108 Commits

Author SHA1 Message Date
barisusakli
94c765fa25 closes #1996 2014-08-27 18:03:53 -04:00
barisusakli
eef200be10 closes #1284 2014-08-26 13:47:53 -04:00
barisusakli
62dd056faa tag search 2014-08-23 21:53:16 -04:00
barisusakli
d411ed5c28 closes #1995 2014-08-17 19:26:24 -04:00
barisusakli
05fdc945f3 closes #1993 2014-08-17 00:14:45 -04:00
barisusakli
ca90afd544 #1992
(drunk) not even done yet
2014-08-16 21:33:42 -04:00
barisusakli
522fda2e58 closes #1936 2014-08-15 18:11:57 -04:00
barisusakli
cd096f8832 sortedSetScores for tag counts 2014-08-15 11:48:01 -04:00
barisusakli
e10eaf0d50 added tag counts to api return 2014-08-14 21:12:12 -04:00
barisusakli
d91fa5747d closes #1964 2014-08-14 15:19:57 -04:00
barisusakli
c9c454825e closes #1369 2014-08-13 21:42:04 -04:00
barisusakli
ceaedf9e2f closes #1941 2014-08-12 13:02:07 -04:00
barisusakli
b5cc852551 do a single filter after getting all unread tids 2014-08-09 16:15:22 -04:00
barisusakli
528ee335d5 optimize getTopicsByTids and getTeasers 2014-08-06 21:30:11 -04:00
barisusakli
95979d9d97 closes #1947 2014-08-05 13:38:50 -04:00
barisusakli
e420ee5fb6 privilege fix for single category check 2014-08-02 19:45:13 -04:00
barisusakli
c217834165 fixed typo 2014-07-31 17:44:13 -04:00
barisusakli
7bfec99df1 permission fix for popular page 2014-07-31 16:32:17 -04:00
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.
2014-07-29 21:51:46 -04:00
barisusakli
f31978aa2c moved core notifications all the way to the end 2014-07-28 19:09:08 -04:00
barisusakli
f71bd41408 more fixes 2014-07-28 18:18:22 -04:00
barisusakli
d7520508e3 #1375 part1 2014-07-28 18:18:20 -04:00
barisusakli
fa8fcc00ec fix tag counts
if a tag is removed from a topic, update number of topics in that tag
2014-07-24 03:46:45 -04:00
barisusakli
bc2f7339ee getLatestUndeletedPid will return string #1884 2014-07-24 03:30:17 -04:00
barisusakli
2bf38ec84b handle pinned topics 2014-07-22 17:58:27 -04:00
barisusakli
82ffaad939 parseint 2014-07-21 19:39:06 -04:00
barisusakli
a69973e7a7 topics.getPids will return mainPid as well 2014-07-19 08:59:59 -04:00
barisusakli
2c890ad609 moved pushUnreadCount 2014-07-17 18:50:03 -04:00
barisusakli
67d5307a8f small change to tag search 2014-07-16 20:46:49 -04:00
barisusakli
6d8cc5648c some tag hooks/filters 2014-07-15 21:26:02 -04:00
barisusakli
0362c1a3b0 show day/week/month/year popular topics 2014-07-11 18:43:26 -04:00
barisusakli
b2ece27263 topic post hook 2014-07-10 15:45:25 -04:00
psychobunny
1d8aeda9c2 closes #1814 2014-07-10 14:16:46 -04:00
barisusakli
d57f183f42 privileges.posts.get takes an array of pids now 2014-06-28 14:59:01 -04:00
barisusakli
6cd29a31a4 removed timing 2014-06-28 01:14:24 -04:00
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
2014-06-28 01:03:26 -04:00
barisusakli
bd4722665d closes #1725
removed move button from main post, disable moving main post, fixed
moving posts.
2014-06-23 18:06:59 -04:00
barisusakli
0987aed0e6 callback undefined error 2014-06-23 14:46:47 -04:00
barisusakli
78509b4ad0 use sortedSetsRemove to remove tid from tags 2014-06-21 22:43:02 -04:00
Julian Lam
d229cd21b2 parsing the post content that's passed into bodyLong in notifs #1720 2014-06-21 01:16:08 -04:00
Julian Lam
c41bb05711 final pass #1720, closed #1720 2014-06-20 17:53:40 -04:00
Julian Lam
d257632878 first pass #1720, updating existing calls to notifications.create, backwards compatibility in case plugins create notifications too. 2014-06-20 16:54:34 -04:00
barisusakli
7c84680b06 closes #1709 2014-06-17 13:11:13 -04:00
Charles
b811bef42c Don't decrease postCount when purging post from a deleted topic 2014-06-17 12:34:09 +07:00
Charles
1448bed057 Remove console.log 2014-06-17 11:57:55 +07:00
Charles
31f1914ec8 Update global postCount when deleting/restoring topic 2014-06-17 11:56:47 +07:00
barisusakli
4c2765a79c closes #1679 2014-06-13 15:33:22 -04:00
barisusakli
e8b89513d4 some cleanup in addUserInfoToPost 2014-06-12 16:45:00 -04:00
barisusakli
b9139ef263 some escaping and fixed uploads in progress 2014-06-12 13:58:21 -04:00
barisusakli
311a7ad5b9 #1281 topic purge 2014-06-10 16:57:00 -04:00