aboutsummaryrefslogtreecommitdiff
path: root/juick-spring-www/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-spring-www/src/main/java')
-rw-r--r--juick-spring-www/src/main/java/com/juick/www/controllers/HelpController.java1
-rw-r--r--juick-spring-www/src/main/java/com/juick/www/controllers/IndexController.java1
-rw-r--r--juick-spring-www/src/main/java/com/juick/www/controllers/PMController.java1
-rw-r--r--juick-spring-www/src/main/java/com/juick/www/controllers/SettingsController.java1
-rw-r--r--juick-spring-www/src/main/java/com/juick/www/controllers/TagController.java1
5 files changed, 0 insertions, 5 deletions
diff --git a/juick-spring-www/src/main/java/com/juick/www/controllers/HelpController.java b/juick-spring-www/src/main/java/com/juick/www/controllers/HelpController.java
index 7b1ec4d9a..3387f8217 100644
--- a/juick-spring-www/src/main/java/com/juick/www/controllers/HelpController.java
+++ b/juick-spring-www/src/main/java/com/juick/www/controllers/HelpController.java
@@ -61,7 +61,6 @@ public class HelpController {
model.addAttribute("help_nav", navigation);
model.addAttribute("help_data", content);
- model.addAttribute("visitor", UserUtils.getCurrentUser());
return "views/help";
}
diff --git a/juick-spring-www/src/main/java/com/juick/www/controllers/IndexController.java b/juick-spring-www/src/main/java/com/juick/www/controllers/IndexController.java
index 4df4d3503..7821a916f 100644
--- a/juick-spring-www/src/main/java/com/juick/www/controllers/IndexController.java
+++ b/juick-spring-www/src/main/java/com/juick/www/controllers/IndexController.java
@@ -94,7 +94,6 @@ public class IndexController {
mids = messagesService.getAll(visitor.getUid(), before);
}
model.addAttribute("title", title);
- model.addAttribute("visitor", visitor);
model.addAttribute("tags", tagService.getPopularTags());
model.addAttribute("showAdv", true);
List<Message> msgs = messagesService.getMessages(mids);
diff --git a/juick-spring-www/src/main/java/com/juick/www/controllers/PMController.java b/juick-spring-www/src/main/java/com/juick/www/controllers/PMController.java
index d40e7aaff..fc5937dd7 100644
--- a/juick-spring-www/src/main/java/com/juick/www/controllers/PMController.java
+++ b/juick-spring-www/src/main/java/com/juick/www/controllers/PMController.java
@@ -49,7 +49,6 @@ public class PMController {
msgs.forEach(m -> m.setText(MessageUtils.formatMessage(m.getText())));
context.put("title", title);
- context.put("visitor", visitor);
context.put("msgs", msgs);
context.put("tags", tagService.getPopularTags());
diff --git a/juick-spring-www/src/main/java/com/juick/www/controllers/SettingsController.java b/juick-spring-www/src/main/java/com/juick/www/controllers/SettingsController.java
index d150d71e2..e7319fb92 100644
--- a/juick-spring-www/src/main/java/com/juick/www/controllers/SettingsController.java
+++ b/juick-spring-www/src/main/java/com/juick/www/controllers/SettingsController.java
@@ -76,7 +76,6 @@ public class SettingsController {
page = "main";
}
context.put("title", "Настройки");
- context.put("visitor", visitor);
context.put("tags", tagService.getPopularTags());
context.put("auths", userService.getAuthCodes(visitor));
context.put("eopts", userService.getEmailOpts(visitor));
diff --git a/juick-spring-www/src/main/java/com/juick/www/controllers/TagController.java b/juick-spring-www/src/main/java/com/juick/www/controllers/TagController.java
index f61928a73..67f38a35e 100644
--- a/juick-spring-www/src/main/java/com/juick/www/controllers/TagController.java
+++ b/juick-spring-www/src/main/java/com/juick/www/controllers/TagController.java
@@ -85,7 +85,6 @@ public class TagController {
ad_mid = 0;
}
}
- model.addAttribute("visitor", visitor);
List<Message> msgs = messagesService.getMessages(mids);
List<Integer> blUIDs = userService.checkBL(visitor_uid,
msgs.stream().map(m -> m.getUser().getUid()).collect(Collectors.toList()));