X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FSearchPage.java;h=f809579b433dc7421908aacef4f444017052752b;hb=e14e8aff491d7a04e4e04ed9c38bcae630195655;hp=d83b822698ea1c01c07c6b42617d92d1235aef7c;hpb=80064be52c34c9d691da252d2628aa1f39debd23;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/SearchPage.java b/src/main/java/net/pterodactylus/sone/web/SearchPage.java index d83b822..f809579 100644 --- a/src/main/java/net/pterodactylus/sone/web/SearchPage.java +++ b/src/main/java/net/pterodactylus/sone/web/SearchPage.java @@ -320,7 +320,7 @@ public class SearchPage extends SoneTemplatePage { */ private String getPostId(String phrase) { String postId = phrase.startsWith("post://") ? phrase.substring(7) : phrase; - return (webInterface.getCore().getPost(postId).isPresent()) ? postId : null; + return (webInterface.getCore().getDatabase().getPost(postId).isPresent()) ? postId : null; } /**