projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Return text for unknown date from accessor.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
web
/
ajax
/
FollowSoneAjaxPage.java
diff --git
a/src/main/java/net/pterodactylus/sone/web/ajax/FollowSoneAjaxPage.java
b/src/main/java/net/pterodactylus/sone/web/ajax/FollowSoneAjaxPage.java
index
e90fa5f
..
d82ab1d
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/web/ajax/FollowSoneAjaxPage.java
+++ b/
src/main/java/net/pterodactylus/sone/web/ajax/FollowSoneAjaxPage.java
@@
-35,7
+35,7
@@
public class FollowSoneAjaxPage extends JsonPage {
* The Sone web interface
*/
public FollowSoneAjaxPage(WebInterface webInterface) {
* The Sone web interface
*/
public FollowSoneAjaxPage(WebInterface webInterface) {
- super("
ajax/
followSone.ajax", webInterface);
+ super("followSone.ajax", webInterface);
}
/**
}
/**
@@
-52,8
+52,8
@@
public class FollowSoneAjaxPage extends JsonPage {
return createErrorJsonObject("auth-required");
}
currentSone.addFriend(soneId);
return createErrorJsonObject("auth-required");
}
currentSone.addFriend(soneId);
- webInterface.getCore().
saveSone(currentSone
);
- return
new JsonObject().put("success", true
);
+ webInterface.getCore().
touchConfiguration(
);
+ return
createSuccessJsonObject(
);
}
}
}
}