Sone sone = webInterface.core().getSone(soneId);
if (!sone.equals(currentSone)) {
currentSone.addFriend(sone);
+ webInterface.core().saveSone(currentSone);
}
throw new RedirectException(returnPage);
}
Sone sone = webInterface.core().getSone(soneId);
if (!sone.equals(currentSone)) {
currentSone.removeFriend(sone);
+ webInterface.core().saveSone(currentSone);
}
throw new RedirectException(returnPage);
}
return new JsonObject().put("success", false).put("error", "auth-required");
}
currentSone.addFriend(sone);
+ webInterface.core().saveSone(currentSone);
return new JsonObject().put("success", true);
}
return new JsonObject().put("success", false).put("error", "auth-required");
}
currentSone.removeFriend(sone);
+ webInterface.core().saveSone(currentSone);
return new JsonObject().put("success", true);
}