Commit Graph

497 Commits

Author SHA1 Message Date
barisusakli
c12b159bb5 temp debug 2014-10-02 18:51:08 -04:00
barisusakli
6aa53b8323 nextStart changes, fixed move topic notification text 2014-10-02 17:46:43 -04:00
barisusakli
5f55cc947c watch unwatch
update on toggle, moved isFollowing to api return and template
2014-09-25 16:46:00 -04:00
psychobunny
99bacf910c oops - #2126 2014-09-23 13:33:36 -04:00
psychobunny
7f2254c9da closes https://github.com/NodeBB/NodeBB/issues/2126 2014-09-23 13:08:53 -04:00
barisusakli
5323934cc2 calculate page count in controller 2014-09-20 19:09:45 -04:00
barisusakli
a19c306f49 guest fixes 2014-09-20 18:07:46 -04:00
psychobunny
45383ce21e posts.getPostsByTid and posts.getPostsByPids now require a uid passed in 2014-09-17 18:10:01 -04:00
barisusakli
655f5087d9 Merge remote-tracking branch 'origin/master' into hashtalk 2014-09-14 12:08:44 -04:00
barisusakli
6bde9a1656 prevent getTopicsByTids crash if a topic is null 2014-09-13 19:33:09 -04:00
barisusakli
57e204df8e removed most of the debug
dont get more than 6 usernames for upvote tooltips
generatePostPaths wont check null pids
2014-09-06 20:46:18 -04:00
barisusakli
34a4a2103f isNan check 2014-09-06 03:45:34 -04:00
barisusakli
edd73b5be2 again 2014-09-06 03:35:28 -04:00
barisusakli
5160a4f90f getTopicwithposts 2014-09-06 03:25:32 -04:00
barisusakli
779b2a8d73 optimize queries 2014-09-06 00:58:03 -04:00
barisusakli
9fac18c4b6 derp 2014-09-05 17:39:24 -04:00
psychobunny
f609b1e45d calololback
(how the hell was this working?)
2014-09-03 18:08:47 -04:00
barisusakli
73bef8168f another crash fix 2014-08-30 11:54:43 -04:00
barisusakli
0473e7f25b crash fix 2014-08-30 11:50:45 -04:00
Julian Lam
cd10248226 basic topic searching via search bar working 2014-08-27 15:26:44 -04:00
Julian Lam
5d32073f2c Merge branch '0.5.1' into topic_searching 2014-08-27 12:29:02 -04:00
barisusakli
eef200be10 closes #1284 2014-08-26 13:47:53 -04:00
barisusakli
22fdf9f4ed getMainPost uses getMainPosts 2014-08-18 16:18:51 -04:00
barisusakli
b858b120da closes #1998 2014-08-18 16:03:25 -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
b16932a676 check mainPid 2014-08-12 15:08:42 -04:00
barisusakli
1cf5c3145a doing it properly this time
mainPost always has index 0
2014-08-12 12:32:38 -04:00
barisusakli
8584da75f2 reverted main post change, breaks indices 2014-08-12 11:49:28 -04:00
barisusakli
c07d9121df small optimizations
user.isOnline works with an array of uids
do not make 2 trips to db to get main post and first 10 posts
2014-08-12 11:19:17 -04:00
barisusakli
46398fa924 removed unused require 2014-08-07 16:20:50 -04:00
barisusakli
cb519d53a1 isArray check 2014-08-07 00:06:13 -04:00
barisusakli
8e8b678d40 small tweak 2014-08-07 00:02:20 -04:00
barisusakli
84aadc03fd fix filter condition 2014-08-06 22:04:35 -04:00
barisusakli
7ffad7e0d1 send callback directly 2014-08-06 21:30:41 -04:00
barisusakli
528ee335d5 optimize getTopicsByTids and getTeasers 2014-08-06 21:30:11 -04:00
barisusakli
90ac399f6d fix topics.loadMore so it checks read permission 2014-08-05 23:22:21 -04:00
Julian Lam
925cd99afb Merge branch 'master' into topic_searching 2014-07-30 17:14:57 -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
0792731873 new hook filter:topics.get 2014-07-25 19:58:44 -04:00
Julian Lam
8296dc5630 beginning topic searching + new hook 2014-07-24 17:30:37 -04:00
psychobunny
1a37176a9d filter:topic.get, surprisingly never implemented till today 2014-07-24 14:16:41 -04:00
barisusakli
0362c1a3b0 show day/week/month/year popular topics 2014-07-11 18:43:26 -04:00
barisusakli
24aa166ed5 dont error when no teaser data 2014-06-28 16:18:29 -04:00
barisusakli
d57f183f42 privileges.posts.get takes an array of pids now 2014-06-28 14:59:01 -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
9af12819e3 closes #1731 2014-06-23 17:26:02 -04:00
barisusakli
7c84680b06 closes #1709 2014-06-17 13:11:13 -04:00
barisusakli
9d4f1e18e1 #1688 removed length check 2014-06-13 15:58:32 -04:00
barisusakli
cd5c24efe3 possible fix for #1688 2014-06-13 15:35:35 -04:00