diff options
author | Vitaly Takmazov | 2023-01-22 20:27:45 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-22 20:57:06 +0300 |
commit | 478a7bfba88401c1996d0be5a144459011b60e10 (patch) | |
tree | 2bdbf40a9910c799673874d64a87a4ef0e5dc04b /src/main/java/com/juick/www/api/Mastodon.java | |
parent | 9ad08dc78e0cdbe2cdebf10a96c800e72d48e48b (diff) |
db refactoring: merge getMessages with isSubscribed query
Diffstat (limited to 'src/main/java/com/juick/www/api/Mastodon.java')
-rw-r--r-- | src/main/java/com/juick/www/api/Mastodon.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/www/api/Mastodon.java b/src/main/java/com/juick/www/api/Mastodon.java index a190defe..91de2162 100644 --- a/src/main/java/com/juick/www/api/Mastodon.java +++ b/src/main/java/com/juick/www/api/Mastodon.java @@ -353,7 +353,7 @@ public class Mastodon { } else if (timeline.equals("home")) { mids = messagesService.getMyFeed(visitor.getUid(), before, true); } - return messagesService.getMessages(visitor, mids).stream() + return messagesService.getMessages(visitor.getUid(), mids).stream() .map(m -> { m.getUser().setAvatar(webApp.getAvatarUrl(m.getUser())); return toStatus(m); |