diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-12-21 15:28:50 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-12-21 15:28:50 +0900 |
| commit | 0dc97370a34d88c9274f5a89f1714d7ce99f7a25 (patch) | |
| tree | 89c4e53bac0461db7ffb61cff706f058d17677dd /src/api/endpoints | |
| parent | v3430 (diff) | |
| download | sharkey-0dc97370a34d88c9274f5a89f1714d7ce99f7a25.tar.gz sharkey-0dc97370a34d88c9274f5a89f1714d7ce99f7a25.tar.bz2 sharkey-0dc97370a34d88c9274f5a89f1714d7ce99f7a25.zip | |
Fix bug
Diffstat (limited to 'src/api/endpoints')
| -rw-r--r-- | src/api/endpoints/posts/search.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/endpoints/posts/search.ts b/src/api/endpoints/posts/search.ts index 777cd7909a..bd3bbfc12e 100644 --- a/src/api/endpoints/posts/search.ts +++ b/src/api/endpoints/posts/search.ts @@ -105,7 +105,7 @@ async function byNative(res, rej, me, text, userId, following, reply, repost, me }); } - if (following != null) { + if (following != null && me != null) { const ids = await getFriends(me._id, false); push({ user_id: following ? { |