import java.io.IOException;
import java.io.StringWriter;
-import java.util.ArrayList;
import net.pterodactylus.sone.data.Post;
import net.pterodactylus.sone.data.Reply;
Sone currentSone = webInterface.getCurrentSone(request.getToadletContext(), false);
for (String notificationId : notificationIds) {
Notification notification = webInterface.getNotifications().getNotification(notificationId);
- ListNotificationFilters.filterNotifications(new ArrayList<Notification>(), currentSone);
if ("new-post-notification".equals(notificationId)) {
notification = ListNotificationFilters.filterNewPostNotification((ListNotification<Post>) notification, currentSone);
} else if ("new-reply-notification".equals(notificationId)) {