return unread count

This commit is contained in:
Athou
2013-07-09 22:16:00 +02:00
parent 4fb22a39a6
commit b2d0d8da26

View File

@@ -307,9 +307,10 @@ public class FeedREST extends AbstractResourceREST {
if (sub == null) {
return Response.status(Status.NOT_FOUND).build();
}
Long unreadCount = feedSubscriptionService.getUnreadCount(getUser()).get(id);
return Response.ok(
Subscription.build(sub, applicationSettingsService.get()
.getPublicUrl(), 0)).build();
.getPublicUrl(), unreadCount)).build();
}
@GET