Fix timeout on invalid set of exclusionary parameters in /api/v1/timelines/public (#26239)

This commit is contained in:
Daniel M Brasil 2023-08-23 10:50:23 -03:00 committed by GitHub
parent b91724fb9d
commit f337008819
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View file

@ -45,11 +45,11 @@ class PublicFeed
end
def local_only?
options[:local]
options[:local] && !options[:remote]
end
def remote_only?
options[:remote]
options[:remote] && !options[:local]
end
def account?