Commit Graph

374 Commits

Author SHA1 Message Date
Julian Lam
baf72249b6 made uid parameter optional in getPidIndex 2014-09-03 12:54:26 -04:00
barisusakli
171f02101d closes #2035, closes #2036 2014-09-02 05:04:39 -04:00
barisusakli
13bdd939e3 crash fix 2014-09-01 18:51:48 -04:00
barisusakli
4f5c78d675 merge 2014-08-30 14:44:43 -04:00
barisusakli
537dea4e4b crash fix 2014-08-30 14:42:48 -04:00
barisusakli
e751a0c0cf closes #2003 2014-08-24 12:58:13 -04:00
barisusakli
7019618863 closes #2003 2014-08-23 22:34:39 -04:00
barisusakli
83de5ba5a4 added topic owner uid 2014-08-18 19:04:49 -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
dd9a383f46 removed unused functions 2014-08-16 21:40:41 -04:00
barisusakli
ca90afd544 #1992
(drunk) not even done yet
2014-08-16 21:33:42 -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
b8279dc737 optimize getUserGroups to work with multiple user ids 2014-08-09 02:07:03 -04:00
barisusakli
38b6c4ce55 #1925 2014-07-30 18:52:58 -04:00
barisusakli
d97af5020a small cleanup to postSummary 2014-07-30 18:40:00 -04:00
barisusakli
5a2b02e798 fix var name, #1925 2014-07-30 17:45:12 -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
eeb4c9f487 optimize getPostSummaryByPids 2014-07-29 17:33:28 -04:00
barisusakli
e8b767d0dd get recent poster uids 2014-07-29 01:36:33 -04:00
barisusakli
0792731873 new hook filter:topics.get 2014-07-25 19:58:44 -04:00
barisusakli
238d6602a2 check for valid content, #1884 2014-07-23 09:40:07 -04:00
barisusakli
206acab1bf added posted data back whoops 2014-07-17 17:49:28 -04:00
barisusakli
afb62c7484 optional timestamp to post.create 2014-07-17 17:48:24 -04:00
barisusakli
64d04f7aa6 closes #1803 2014-07-07 17:36:14 -04:00
barisusakli
3e75a4397a fixes guest post data in topics 2014-07-03 09:42:39 -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
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
9af12819e3 closes #1731 2014-06-23 17:26:02 -04:00
barisusakli
4c2765a79c closes #1679 2014-06-13 15:33:22 -04:00
barisusakli
3b1e373e7b group titles 2014-06-12 18:53:58 -04:00
barisusakli
e8b89513d4 some cleanup in addUserInfoToPost 2014-06-12 16:45:00 -04:00
barisusakli
833aa0f738 derp 2014-06-09 12:51:49 -04:00
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.
2014-06-06 22:12:19 -04:00
barisusakli
55dbc5c823 closes #1612
changed post links to "topic/<topic_id>/<topic_slug>/<post_id>"
2014-06-02 17:31:14 -04:00
barisusakli
1e68974f50 small refactor 2014-05-20 17:46:17 -04:00
barisusakli
472e6b5206 privilege cleanup 2014-05-17 18:59:34 -04:00
barisusakli
4234057821 first pass for #1518
this only handles postTools privileges, topic and category will follow
2014-05-14 17:53:27 -04:00
barisusakli
3643fbc212 fixes 2 privilege issues 2014-05-14 14:56:46 -04:00
barisusakli
8afcf44732 gravatars will be generated on demand
changing the setting in ACP will affect all default gravatars now.
2014-05-04 17:27:00 -04:00
barisusakli
b88df6420d check err 2014-04-30 13:37:56 -04:00
barisusakli
fa8cdce748 closes #1448 2014-04-27 17:17:07 -04:00
barisusakli
c9551abc5d closes #1432
ability to select a default gravatar image (default, identicon,
mystery-man, monsterid, wavatar, retro) or upload a custom image to use
as default gravatar image
2014-04-26 15:53:00 -04:00
barisusakli
844923d538 added guest language string 2014-04-20 15:17:17 -04:00
barisusakli
2ad715ead3 closes #1412 2014-04-20 15:07:53 -04:00
barisusakli
9d405812cb changed sortedSetRangeByScore 2014-04-10 20:59:17 -04:00
barisusakli
1f77df794a added lots of error keys 2014-04-09 22:26:23 -04:00
barisusakli
d61e632c59 closes #1366 2014-04-09 15:49:36 -04:00
barisusakli
640686f031 added back paragraph tags 2014-04-04 10:02:00 -04:00