Return time of a post, and don’t load it if it’s older than the last post on the...
[Sone.git] / src / main / java / net / pterodactylus / sone / web / ajax / GetStatusAjaxPage.java
index 172f237..a358fb1 100644 (file)
@@ -95,6 +95,7 @@ public class GetStatusAjaxPage extends JsonPage {
                        jsonPost.put("id", post.getId());
                        jsonPost.put("sone", post.getSone().getId());
                        jsonPost.put("recipient", (post.getRecipient() != null) ? post.getRecipient().getId() : null);
+                       jsonPost.put("time", post.getTime());
                        jsonPosts.add(jsonPost);
                }
                /* load new replies. */