}
}
- public Optional<PostReply> getPostReply(String replyId) {
- return database.getPostReply(replyId);
- }
-
- public List<PostReply> getReplies(final String postId) {
- return database.getReplies(postId);
- }
-
/**
* Returns all Sones that have liked the given post.
*
post.setKnown(true);
eventBus.post(new MarkPostKnownEvent(post));
touchConfiguration();
- for (PostReply reply : getReplies(post.getId())) {
+ for (PostReply reply : post.getReplies()) {
markReplyKnown(reply);
}
}