mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
return unread count
This commit is contained in:
@@ -307,9 +307,10 @@ public class FeedREST extends AbstractResourceREST {
|
|||||||
if (sub == null) {
|
if (sub == null) {
|
||||||
return Response.status(Status.NOT_FOUND).build();
|
return Response.status(Status.NOT_FOUND).build();
|
||||||
}
|
}
|
||||||
|
Long unreadCount = feedSubscriptionService.getUnreadCount(getUser()).get(id);
|
||||||
return Response.ok(
|
return Response.ok(
|
||||||
Subscription.build(sub, applicationSettingsService.get()
|
Subscription.build(sub, applicationSettingsService.get()
|
||||||
.getPublicUrl(), 0)).build();
|
.getPublicUrl(), unreadCount)).build();
|
||||||
}
|
}
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
|
|||||||
Reference in New Issue
Block a user