Change TOOTS to STATUSES

This commit is contained in:
Vyr Cossont 2022-11-28 18:45:20 -08:00
parent f6f13f54cf
commit d3c1eaba21
2 changed files with 4 additions and 4 deletions

View file

@ -283,10 +283,10 @@ MAX_POLL_OPTION_CHARS=100
# Customize the number of hashtags shown in 'Explore'
# MAX_TRENDING_TAGS=10
# Search all visible toots
# (Normally searches only a user's own toots, favs, bookmarks, and mentions)
# Search all visible statuses
# (Normally searches only a user's own statuses, favs, bookmarks, and mentions)
# Only relevant when elasticsearch is installed
# SEARCH_ALL_VISIBLE_TOOTS=true
# SEARCH_ALL_VISIBLE_STATUSES=true
# Maximum custom emoji file sizes
# If undefined or smaller than MAX_EMOJI_SIZE, the value

View file

@ -2,7 +2,7 @@
class SearchService < BaseService
SEARCH_ALL_VISIBLE_TOOTS = ENV['SEARCH_ALL_VISIBLE_TOOTS'] == 'true'
SEARCH_ALL_VISIBLE_STATUSES = ENV['SEARCH_ALL_VISIBLE_STATUSES'] == 'true'
def call(query, account, limit, options = {})
@query = query&.strip