mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-09 15:18:11 -05:00
Merge pull request #8363 from cmrd-senya/fix-api-tags-stream-to-hide-ignores
API: update Search endpoint to be aware of ignored users
This commit is contained in:
@@ -87,11 +87,9 @@ module Api
|
||||
end
|
||||
|
||||
def posts_query
|
||||
if private_read?
|
||||
Stream::Tag.new(current_user, params.require(:tag)).posts
|
||||
else
|
||||
Stream::Tag.new(nil, params.require(:tag)).posts
|
||||
end
|
||||
opts = {}
|
||||
opts[:public_only] = !private_read?
|
||||
Stream::Tag.new(current_user, params.require(:tag), opts).stream_posts
|
||||
end
|
||||
|
||||
def tags_query
|
||||
|
||||
Reference in New Issue
Block a user