From 22aaf28c779725962a3ebec3e689bef35fe05085 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 3 Feb 2023 02:13:17 +0300 Subject: GetTagNoIndex -> tag.isNotIndexed --- src/main/java/com/juick/www/controllers/Site.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/main/java/com/juick/www') diff --git a/src/main/java/com/juick/www/controllers/Site.java b/src/main/java/com/juick/www/controllers/Site.java index 49736a60..2a1c89ae 100644 --- a/src/main/java/com/juick/www/controllers/Site.java +++ b/src/main/java/com/juick/www/controllers/Site.java @@ -33,7 +33,6 @@ import jakarta.servlet.http.HttpSession; import com.juick.service.*; import com.juick.util.MessageUtils; import org.apache.commons.lang3.StringUtils; -import org.apache.commons.lang3.tuple.Pair; import org.apache.commons.text.StringEscapeUtils; import org.springframework.beans.factory.annotation.Value; import org.springframework.http.HttpStatus; @@ -50,7 +49,6 @@ import javax.inject.Inject; import java.net.URLEncoder; import java.nio.charset.StandardCharsets; import java.util.ArrayList; -import java.util.Collections; import java.util.List; import java.util.Locale; import java.util.Optional; @@ -289,7 +287,7 @@ public class Site { String head = ""; head += "\n"; - if (paramTag != null && tagService.getTagNoIndex(paramTag.getId())) { + if (paramTag != null && tagService.getTag(paramTag.getId()).isNotIndexed()) { head += ""; } else if (before > 0 || paramShow != null) { head += ""; @@ -435,7 +433,7 @@ public class Site { } String head = StringUtils.EMPTY; - if (tagService.getTagNoIndex(paramTag.getId())) { + if (tagService.getTag(paramTag.getId()).isNotIndexed()) { head = ""; } else if (before > 0 || mids.size() < 5) { head = ""; -- cgit v1.2.3