public WebInterface(SonePlugin sonePlugin) {
this.sonePlugin = sonePlugin;
formPassword = sonePlugin.pluginRespirator().getToadletContainer().getFormPassword();
public WebInterface(SonePlugin sonePlugin) {
this.sonePlugin = sonePlugin;
formPassword = sonePlugin.pluginRespirator().getToadletContainer().getFormPassword();
templateContextFactory = new TemplateContextFactory();
templateContextFactory.addAccessor(Object.class, new ReflectionAccessor());
templateContextFactory = new TemplateContextFactory();
templateContextFactory.addAccessor(Object.class, new ReflectionAccessor());
notificationManager.addNotification(newPostNotification);
if (!getMentionedSones(post.getText()).isEmpty()) {
mentionNotification.add(post);
notificationManager.addNotification(newPostNotification);
if (!getMentionedSones(post.getText()).isEmpty()) {
mentionNotification.add(post);
notificationManager.addNotification(newReplyNotification);
if (!getMentionedSones(reply.getText()).isEmpty()) {
mentionNotification.add(reply.getPost());
notificationManager.addNotification(newReplyNotification);
if (!getMentionedSones(reply.getText()).isEmpty()) {
mentionNotification.add(reply.getPost());