aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com/juick/www/controllers
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-08-18 14:11:14 +0300
committerGravatar Vitaly Takmazov2017-08-18 14:35:09 +0300
commitdd4ea16baae17bf48045b2ac4f05c036cdc9496c (patch)
tree558a22f20969ed3b803c4a9fab587c6f8734fea5 /juick-www/src/main/java/com/juick/www/controllers
parent9c0f37b2fd7535a46c324ff7eb89ed9454aee88f (diff)
www: fix noindex usage
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/controllers')
-rw-r--r--juick-www/src/main/java/com/juick/www/controllers/Home.java2
-rw-r--r--juick-www/src/main/java/com/juick/www/controllers/Tags.java1
2 files changed, 2 insertions, 1 deletions
diff --git a/juick-www/src/main/java/com/juick/www/controllers/Home.java b/juick-www/src/main/java/com/juick/www/controllers/Home.java
index 912140a22..7a019af8f 100644
--- a/juick-www/src/main/java/com/juick/www/controllers/Home.java
+++ b/juick-www/src/main/java/com/juick/www/controllers/Home.java
@@ -163,7 +163,7 @@ public class Home {
model.addAttribute("title", title);
model.addAttribute("headers", head);
model.addAttribute("visitor", visitor);
- model.addAttribute("noindex", paramShow == null && paramBefore == 0);
+ model.addAttribute("noindex", !(paramShow == null && paramBefore == 0));
List<com.juick.Message> msgs = messagesService.getMessages(mids);
if (visitor.getUid() != 0) {
diff --git a/juick-www/src/main/java/com/juick/www/controllers/Tags.java b/juick-www/src/main/java/com/juick/www/controllers/Tags.java
index acab10059..eef317a99 100644
--- a/juick-www/src/main/java/com/juick/www/controllers/Tags.java
+++ b/juick-www/src/main/java/com/juick/www/controllers/Tags.java
@@ -100,6 +100,7 @@ public class Tags {
model.addAttribute("msgs", msgs);
model.addAttribute("tags", tagService.getPopularTags());
model.addAttribute("headers", head);
+ model.addAttribute("noindex", before > 0);
model.addAttribute("showAdv",before == 0 && visitor.getUid() == 0);
model.addAttribute("isModerator", visitor.getUid() == 3694);
if (mids.size() >= 20) {