*/
public static boolean isPostVisible(Sone sone, Post post) {
checkNotNull(post, "post must not be null");
- Sone postSone = post.getSone();
- if (postSone == null) {
+ if (!post.isLoaded()) {
return false;
}
+ Sone postSone = post.getSone();
if (sone != null) {
Trust trust = postSone.getIdentity().getTrust((OwnIdentity) sone.getIdentity());
if (trust != null) {
return !post.isKnown();
} else if (member.equals("bookmarked")) {
return core.isBookmarked(post);
- } else if (member.equals("loaded")) {
- return post.getSone() != null;
}
return super.get(templateContext, object, member);
}