mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
initial starring support
This commit is contained in:
@@ -18,4 +18,10 @@ public class FeedEntryService {
|
||||
status.setRead(read);
|
||||
feedEntryStatusDAO.update(status);
|
||||
}
|
||||
|
||||
public void starEntry(User user, Long entryId, boolean starred) {
|
||||
FeedEntryStatus status = feedEntryStatusDAO.findById(user, entryId);
|
||||
status.setStarred(starred);
|
||||
feedEntryStatusDAO.update(status);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user