Commit Graph

83 Commits

Author SHA1 Message Date
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
barisusakli
a65d612907 #1281 post purge 2014-06-10 14:24:56 -04:00
barisusakli
eb1b48092d closes #1666 2014-06-10 14:24:56 -04:00
barisusakli
b7f71ca0b4 fixes removePostFromTopic
remove the pid from the votes set too
2014-06-07 13:04:30 -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
6b93095204 more link fixes 2014-06-03 18:55:58 -04:00
barisusakli
e20920c536 closes #1630 2014-06-03 12:30:36 -04:00
barisusakli
0574022e02 fixes to infinitescroll 2014-06-02 20:41:08 -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
18810e7203 allow dots in tags 2014-05-25 12:49:41 -04:00
barisusakli
9079d7f26f fix create tags crash if no callback is passed 2014-05-25 12:38:49 -04:00
barisusakli
1a753bf64d fixes forking
if there are no tags just return
2014-05-24 06:29:44 -04:00
barisusakli
e505a9a6ac changed order of cleanup 2014-05-23 19:07:39 -04:00
barisusakli
dbf07f786d closes #1565 2014-05-23 15:01:54 -04:00
barisusakli
b8b482e287 closes #1555 2014-05-22 14:56:15 -04:00
barisusakli
fa1275c03a closes #1557 2014-05-22 14:41:11 -04:00
barisusakli
746df87d89 upgrade tags to sorted set 2014-05-22 13:06:19 -04:00
barisusakli
87fe5bf1bb delete tag if it has no topics left 2014-05-21 20:25:35 -04:00
barisusakli
56f442f283 remove punctuation and limit tag length 2014-05-21 20:20:44 -04:00
barisusakli
d8fd29581e deleting a user will delete topic tags too 2014-05-21 19:39:10 -04:00
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
2014-05-21 16:13:51 -04:00
barisusakli
472e6b5206 privilege cleanup 2014-05-17 18:59:34 -04:00
barisusakli
b1aae05a08 closes #1518 2014-05-15 20:49:47 -04:00
barisusakli
3e86bdb38f more work on #1518
still needs more work, category is next
2014-05-15 10:38:02 -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
f29dda4b92 fixed 1 more 2014-05-14 14:59:35 -04:00