/*
- * Sone - UnlikePage.java - Copyright © 2010–2012 David Roden
+ * Sone - UnlikePage.java - Copyright © 2010–2013 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
String type = request.getHttpRequest().getPartAsStringFailsafe("type", 16);
String id = request.getHttpRequest().getPartAsStringFailsafe(type, 36);
String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 256);
- Sone currentSone = getCurrentSone(request.getToadletContext());
+ Sone currentSone = getCurrentSone(request.getToadletContext()).get();
if ("post".equals(type)) {
currentSone.removeLikedPostId(id);
} else if ("reply".equals(type)) {