projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use traditional getter name.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
web
/
ajax
/
UnfollowSoneAjaxPage.java
diff --git
a/src/main/java/net/pterodactylus/sone/web/ajax/UnfollowSoneAjaxPage.java
b/src/main/java/net/pterodactylus/sone/web/ajax/UnfollowSoneAjaxPage.java
index
e9650aa
..
509f629
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/web/ajax/UnfollowSoneAjaxPage.java
+++ b/
src/main/java/net/pterodactylus/sone/web/ajax/UnfollowSoneAjaxPage.java
@@
-44,7
+44,7
@@
public class UnfollowSoneAjaxPage extends JsonPage {
@Override
protected JsonObject createJsonObject(Request request) {
String soneId = request.getHttpRequest().getParam("sone");
@Override
protected JsonObject createJsonObject(Request request) {
String soneId = request.getHttpRequest().getParam("sone");
- Sone sone = webInterface.
c
ore().getSone(soneId);
+ Sone sone = webInterface.
getC
ore().getSone(soneId);
if (sone == null) {
return new JsonObject().put("success", false).put("error", "invalid-sone-id");
}
if (sone == null) {
return new JsonObject().put("success", false).put("error", "invalid-sone-id");
}
@@
-53,7
+53,7
@@
public class UnfollowSoneAjaxPage extends JsonPage {
return new JsonObject().put("success", false).put("error", "auth-required");
}
currentSone.removeFriend(sone);
return new JsonObject().put("success", false).put("error", "auth-required");
}
currentSone.removeFriend(sone);
- webInterface.
c
ore().saveSone(currentSone);
+ webInterface.
getC
ore().saveSone(currentSone);
return new JsonObject().put("success", true);
}
return new JsonObject().put("success", true);
}