projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove PostProvider methods from Core.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
web
/
ajax
/
GetLikesAjaxPage.java
diff --git
a/src/main/java/net/pterodactylus/sone/web/ajax/GetLikesAjaxPage.java
b/src/main/java/net/pterodactylus/sone/web/ajax/GetLikesAjaxPage.java
index
dea635c
..
3bb40c9
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/web/ajax/GetLikesAjaxPage.java
+++ b/
src/main/java/net/pterodactylus/sone/web/ajax/GetLikesAjaxPage.java
@@
-64,7
+64,7
@@
public class GetLikesAjaxPage extends JsonPage {
return createErrorJsonObject("invalid-" + type + "-id");
}
if ("post".equals(type)) {
return createErrorJsonObject("invalid-" + type + "-id");
}
if ("post".equals(type)) {
- Optional<Post> post = webInterface.getCore().getPost(id);
+ Optional<Post> post = webInterface.getCore().get
Database().get
Post(id);
if (!post.isPresent()) {
return createErrorJsonObject("invalid-post-id");
}
if (!post.isPresent()) {
return createErrorJsonObject("invalid-post-id");
}