import com.google.common.base.Optional;
+import net.pterodactylus.sone.data.LocalSone;
import net.pterodactylus.sone.data.Post;
-import net.pterodactylus.sone.data.Sone;
import net.pterodactylus.sone.web.WebInterface;
import net.pterodactylus.sone.web.page.FreenetRequest;
import net.pterodactylus.util.io.Closer;
* The currently logged in Sone (to store in the template)
* @return The JSON representation of the post
*/
- private JsonNode createJsonPost(FreenetRequest request, Post post, Optional<Sone> currentSone) {
+ private JsonNode createJsonPost(FreenetRequest request, Post post, Optional<LocalSone> currentSone) {
ObjectNode jsonPost = new ObjectNode(instance);
jsonPost.put("id", post.getId());
jsonPost.put("sone", post.getSone().getId());