aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/www
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-10-18 17:23:37 +0300
committerGravatar Vitaly Takmazov2022-10-18 17:23:53 +0300
commit8f8e3bafdbe22c9beb27afb593bbc5b57512c53d (patch)
treeeef49f03963568e98e67afe603ef720608c2cbbb /src/main/java/com/juick/www
parentcc921ccb6bc13e69c716a4eff95c0740745777c1 (diff)
Better trends query on `/api/tags` endpoint
Diffstat (limited to 'src/main/java/com/juick/www')
-rw-r--r--src/main/java/com/juick/www/api/Tags.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/main/java/com/juick/www/api/Tags.java b/src/main/java/com/juick/www/api/Tags.java
index c7941925..7d934f38 100644
--- a/src/main/java/com/juick/www/api/Tags.java
+++ b/src/main/java/com/juick/www/api/Tags.java
@@ -43,9 +43,6 @@ public class Tags {
@Visitor User visitor,
@RequestParam(required = false, defaultValue = "0") int user_id
) {
- if (user_id == 0) {
- user_id = visitor.getUid();
- }
if (user_id > 0) {
return tagService.getUserTagStats(user_id);
}