From acddd380e1868e28491eaf85f05e87d7a47a123f Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 16 Dec 2016 17:09:38 +0300 Subject: Anonym -> Anonymous --- juick-api/src/main/java/com/juick/api/controllers/Messages.java | 2 +- juick-api/src/main/java/com/juick/api/controllers/Post.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'juick-api') diff --git a/juick-api/src/main/java/com/juick/api/controllers/Messages.java b/juick-api/src/main/java/com/juick/api/controllers/Messages.java index 2ccdcf9a..d50620ff 100644 --- a/juick-api/src/main/java/com/juick/api/controllers/Messages.java +++ b/juick-api/src/main/java/com/juick/api/controllers/Messages.java @@ -59,7 +59,7 @@ public class Messages { public ResponseEntity> getHome( @RequestParam(defaultValue = "0") int before_mid) { User visitor = UserUtils.getCurrentUser(); - if (!visitor.isAnonym()) { + if (!visitor.isAnonymous()) { int vuid = visitor.getUid(); List mids = messagesService.getMyFeed(vuid, before_mid); diff --git a/juick-api/src/main/java/com/juick/api/controllers/Post.java b/juick-api/src/main/java/com/juick/api/controllers/Post.java index 606b5e82..853a60ff 100644 --- a/juick-api/src/main/java/com/juick/api/controllers/Post.java +++ b/juick-api/src/main/java/com/juick/api/controllers/Post.java @@ -59,7 +59,7 @@ public class Post { @RequestParam(required = false) MultipartFile attach) throws IOException { User visitor = UserUtils.getCurrentUser(); - if (visitor.isAnonym()) + if (visitor.isAnonymous()) throw new HttpForbiddenException(); if (body == null || body.length() < 1 || body.length() > 4096) { -- cgit v1.2.3