aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/www/api/Mastodon.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-04-26 10:10:46 +0300
committerGravatar Vitaly Takmazov2023-04-30 11:41:27 +0300
commitcd6150df90a6ab86f20221c61c58c6864dc408fc (patch)
tree5919da0af4e716445bf5c6c4167af72263152538 /src/main/java/com/juick/www/api/Mastodon.java
parentc5bd1fed700c1c16c3680587a9556c06d477eb1f (diff)
Expose 'vip' and 'ignored' user lists over '/me' API endpoint
Diffstat (limited to 'src/main/java/com/juick/www/api/Mastodon.java')
-rw-r--r--src/main/java/com/juick/www/api/Mastodon.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/com/juick/www/api/Mastodon.java b/src/main/java/com/juick/www/api/Mastodon.java
index 91de2162..eeca1fda 100644
--- a/src/main/java/com/juick/www/api/Mastodon.java
+++ b/src/main/java/com/juick/www/api/Mastodon.java
@@ -28,7 +28,6 @@ import com.juick.model.Message;
import com.juick.model.User;
import com.juick.service.ChatService;
import com.juick.service.MessagesService;
-import com.juick.service.TagService;
import com.juick.service.UserService;
import com.juick.util.HttpBadRequestException;
import com.juick.util.MessageUtils;
@@ -214,7 +213,7 @@ public class Mastodon {
User user = userService.getUserByUID(Integer.parseInt(userId)).orElseThrow(HttpBadRequestException::new);
var readers = userService.getUserReaders(Integer.parseInt(visitorId));
var friends = userService.getUserFriends(Integer.parseInt(visitorId));
- var bl = userService.getUserBLUsers(Integer.parseInt(visitorId));
+ var bl = userService.getUserIgnoredUsers(Integer.parseInt(visitorId));
var isFriend = friends.contains(user);
var isReader = readers.contains(user);
var isMuting = bl.contains(user);