import java.util.List;
import java.util.Map;
+import net.pterodactylus.sone.data.LocalSone;
import net.pterodactylus.sone.data.Sone;
import net.pterodactylus.sone.main.SonePlugin;
import net.pterodactylus.sone.notify.ListNotificationFilters;
* @return The currently logged in Sone, or {@code null} if no Sone is
* currently logged in
*/
- protected Optional<Sone> getCurrentSone(ToadletContext toadletContext) {
+ protected Optional<LocalSone> getCurrentSone(ToadletContext toadletContext) {
return webInterface.getCurrentSone(toadletContext);
}
* @return The currently logged in Sone, or {@code null} if no Sone is
* currently logged in
*/
- protected Optional<Sone> getCurrentSone(ToadletContext toadletContext, boolean create) {
+ protected Optional<LocalSone> getCurrentSone(ToadletContext toadletContext, boolean create) {
return webInterface.getCurrentSone(toadletContext, create);
}
@Override
protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
super.processTemplate(request, templateContext);
- Optional<Sone> currentSone = getCurrentSone(request.getToadletContext(), false);
+ Optional<LocalSone> currentSone = getCurrentSone(request.getToadletContext(), false);
templateContext.set("core", webInterface.getCore());
templateContext.set("currentSone", currentSone.orNull());
templateContext.set("localSones", webInterface.getCore().getLocalSones());