diff --git a/src/components/search/search.js b/src/components/search/search.js index 6cae915c..5c1b8ce1 100644 --- a/src/components/search/search.js +++ b/src/components/search/search.js @@ -65,11 +65,15 @@ const Search = { allStatusesObject[status.id] && !allStatusesObject[status.id].deleted ) }, + isLoggedIn () { + return !!this.$store.state.users.currentUser + }, canSearchMediaPosts () { return this.$store.state.instance.searchTypeMediaEnabled === true }, canSearchFollowing () { - return this.$store.state.instance.searchOptionFollowingEnabled === true + return this.isLoggedIn && + this.$store.state.instance.searchOptionFollowingEnabled === true } }, mounted () {