Commit Graph

103 Commits

Author SHA1 Message Date
barisusakli
b5fb7691cd optimize getUnreadByField
only get the most recent 100 notifications
dont call UserNotifications.getNotifications which does alot more work,
call the db directly
2014-10-17 17:20:45 -04:00
Spiritlebon
2b15de63c0 checked number before parseInt 2014-10-12 04:01:35 +02:00
Spiritlebon
35fc175ff6 Lint fix 2014-10-12 03:36:38 +02:00
barisusakli
142ffc2920 fixed other post 2014-10-09 18:16:29 -04:00
barisusakli
0d95089bfe send array of posts 2014-10-09 18:12:40 -04:00
barisusakli
5f55cc947c watch unwatch
update on toggle, moved isFollowing to api return and template
2014-09-25 16:46:00 -04:00
barisusakli
4de658e096 checks 2014-09-19 19:45:16 -04:00
psychobunny
251351e245 forgot to require plugins 2014-09-18 17:44:24 -04:00
psychobunny
efe11a63a3 woops, wrong property name 2014-09-18 17:40:15 -04:00
psychobunny
9e7f929029 updated filter:sockets.sendNewPostToUids and added type 2014-09-18 17:36:34 -04:00
barisusakli
0a936e5dd1 unreadTids 2014-09-16 12:38:31 -04:00
barisusakli
32257c9b2f updateUnreadCount 2014-09-16 11:06:10 -04:00
barisusakli
82e721e854 send new post/topic to users who can read it 2014-09-14 14:19:36 -04:00
barisusakli
b3d9db10f2 notification fixes
made post notifications unique per post so they dont overwrite other
types.
2014-09-14 12:07:27 -04:00
barisusakli
493d0dea1e part 1 of notif refactor 2014-09-14 12:07:23 -04:00
barisusakli
01f983e29c markAsRead improvement
takes in an array of tids instead of marking topics read 1 by 1
same for the category.markAsRead function
2014-09-10 21:44:19 -04:00
barisusakli
242721c73f using websockets 2014-09-07 14:13:05 -04:00
barisusakli
6cd84ebe81 removed parseInt from sorts 2014-09-07 13:03:06 -04:00
barisusakli
421d091828 optimizing browsing users 2014-09-06 00:19:46 -04:00
barisusakli
9fac18c4b6 derp 2014-09-05 17:39:24 -04:00
barisusakli
c62f251afc added index and fixed vote button in infinite scroll 2014-09-04 01:48:57 -04:00
Julian Lam
cc930e4042 Merge branch '0.5.1' into topic_searching
Conflicts:
	src/socket.io/topics.js
2014-08-29 09:59:18 -04:00
barisusakli
94c765fa25 closes #1996 2014-08-27 18:03:53 -04:00
Julian Lam
5d32073f2c Merge branch '0.5.1' into topic_searching 2014-08-27 12:29:02 -04:00
barisusakli
ca90afd544 #1992
(drunk) not even done yet
2014-08-16 21:33:42 -04:00
barisusakli
ac43ff3c3d closes #1970 2014-08-12 13:45:18 -04:00
barisusakli
59d4d2880f fixed markAsUnreadForAll permissions 2014-08-05 23:47:17 -04:00
barisusakli
90ac399f6d fix topics.loadMore so it checks read permission 2014-08-05 23:22:21 -04:00
barisusakli
5ce0ebb4ac single socket call on topic enter 2014-08-05 17:09:56 -04:00
barisusakli
e420ee5fb6 privilege fix for single category check 2014-08-02 19:45:13 -04:00
barisusakli
c6c23aad5e eachLimit on move all topics 2014-08-02 16:48:34 -04:00
Julian Lam
8296dc5630 beginning topic searching + new hook 2014-07-24 17:30:37 -04:00
psychobunny
b604a4961c thanks @barisusakli 2014-07-24 16:17:49 -04:00
psychobunny
788b16fa62 adding uid to the topic hooks, so plugins can know the user that did the action 2014-07-24 16:04:18 -04:00
psychobunny
d78fdb1520 more confusing, works perfectably 2014-07-17 22:26:50 -04:00
psychobunny
a67e0ea3c2 less confusing 2014-07-17 19:01:46 -04:00
barisusakli
2c890ad609 moved pushUnreadCount 2014-07-17 18:50:03 -04:00
barisusakli
6d8cc5648c some tag hooks/filters 2014-07-15 21:26:02 -04:00
barisusakli
9fbd535b79 fixes vote buttons on infinite scroll and new posts 2014-07-09 16:59:39 -04:00
barisusakli
a9e5e82431 closes #1758 2014-06-27 15:35:58 -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
a4d4e53f45 speed up category purge
using eachLimit
dont emit stats on every topic delete
2014-06-21 22:11:44 -04:00
barisusakli
311a7ad5b9 #1281 topic purge 2014-06-10 16:57:00 -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
psychobunny
b2b76f701d woops, okay actually fixing it properly this time 2014-05-28 18:23:59 -04:00
psychobunny
d5e55d27ed fix for previous commit 2014-05-28 18:22:34 -04:00
psychobunny
d81351579d don't require passing in uid for topics.markAsRead 2014-05-28 18:21:15 -04:00
psychobunny
791fde7904 fixing #1587 properly for unread count 2014-05-28 18:20:02 -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
Julian Lam
b1534b7798 removing allowGuestPosting logic in NodeBB 2014-05-16 16:29:43 -04:00