From: David ‘Bombe’ Roden Date: Wed, 29 Jun 2011 07:26:59 +0000 (+0200) Subject: Don’t list replies to unknown posts. X-Git-Tag: 0.6.6^2~43 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0206f34c78f37e18bede0a704ab30b7c08825933;p=Sone.git Don’t list replies to unknown posts. --- diff --git a/src/main/java/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.java b/src/main/java/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.java index 246cbed..c55939d 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.java @@ -132,7 +132,7 @@ public class GetStatusAjaxPage extends JsonPage { @Override public boolean filterObject(Reply reply) { - return reply.getPost() != null; + return (reply.getPost() != null) && (reply.getPost().getSone() != null); } }); JsonArray jsonReplies = new JsonArray();