Change TOOTS to STATUSES

main
Vyr Cossont 2 years ago
parent f6f13f54cf
commit d3c1eaba21

@ -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

@ -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

Loading…
Cancel
Save