Julian Lam
44175188c4
handling case where user does not satisfy any of the privilege thresholds given to the hasEnoughReputationFor method
2014-11-04 23:19:28 -05:00
barisusakli
b12e3562d5
hide category icons if they are not set
2014-10-30 18:04:49 -04:00
barisusakli
081efd22e2
prevent crash if category is not found
2014-10-24 15:35:10 -04:00
barisusakli
802c8b15e2
fix upgrade script to include main post, and fix post indices
2014-10-22 19:33:47 -04:00
barisusakli
761f56aeb1
removed most of the db.sortedSetCards
2014-10-14 23:12:47 -04:00
barisusakli
0eae679bcd
crash fix if field is undefined
2014-10-14 13:52:47 -04:00
barisusakli
29d90bc67d
only use unique cids in isModerator
2014-10-09 19:53:10 -04:00
barisusakli
e1c3bc9713
fix teasers
2014-10-08 19:28:36 -04:00
barisusakli
73d358edc5
faster getTeasers
...
got rid of getPostIndices
2014-10-03 13:43:51 -04:00
barisusakli
8737c5a56d
removed debug
2014-10-02 19:15:52 -04:00
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