Progress on little important things

removing .mov for now until we can figure out solution with videojs, added model to track username changes, got chat creation flow down, progress on bookmark collections, albums, filtering blocks/mutes from group, explore, collection timelines
This commit is contained in:
mgabdev
2020-12-22 01:36:38 -05:00
parent 2bbb5be505
commit 6fbea0a59e
37 changed files with 406 additions and 135 deletions

View File

@@ -45,7 +45,11 @@ class Api::V1::Timelines::ExploreController < EmptyController
end
def explore_statuses
SortingQueryBuilder.new.call(@sort_type, params[:max_id])
if current_account
SortingQueryBuilder.new.call(@sort_type, params[:max_id]).reject { |status| FeedManager.instance.filter?(:home, status, current_account.id) }
else
SortingQueryBuilder.new.call(@sort_type, params[:max_id])
end
end
def insert_pagination_headers

View File

@@ -70,7 +70,11 @@ class Api::V1::Timelines::GroupCollectionController < EmptyController
return []
end
SortingQueryBuilder.new.call(@sort_type, params[:max_id], @groupIds)
if current_account
SortingQueryBuilder.new.call(@sort_type, params[:max_id], @groupIds).reject { |status| FeedManager.instance.filter?(:home, status, current_account.id) }
else
SortingQueryBuilder.new.call(@sort_type, params[:max_id], @groupIds)
end
end
def insert_pagination_headers

View File

@@ -51,7 +51,12 @@ class Api::V1::Timelines::GroupController < Api::BaseController
end
def group_statuses
SortingQueryBuilder.new.call(@sort_type, params[:max_id], @group)
if current_account
SortingQueryBuilder.new.call(@sort_type, params[:max_id], @group).reject { |status| FeedManager.instance.filter?(:home, status, current_account.id) }
else
SortingQueryBuilder.new.call(@sort_type, params[:max_id], @group)
end
end
def insert_pagination_headers