]> cat aescling's git repositories - mastodon.git/commit
optimize direct timeline (#7614)
authortateisu <tateisu@gmail.com>
Mon, 28 May 2018 09:04:06 +0000 (18:04 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 28 May 2018 09:04:06 +0000 (11:04 +0200)
commitb87a1229c74aebec02cd08091f25613f6dff4428
treebf5eaecfd544005cc46d7aa52ccb81c41ef5265a
parentab36e0ef72a52e5cc184d63cda0fe411c8b4086a
optimize direct timeline (#7614)

* optimize direct timeline

* fix typo in class name

* change filter condition for direct timeline

* fix codestyle issue

* revoke index_accounts_not_silenced because direct timeline does not use it.

* revoke index_accounts_not_silenced because direct timeline does not use it.

* fix rspec test condition.

* fix rspec test condition.

* fix rspec test condition.

* revoke adding column and partial index

* (direct timeline) move merging logic to model

* fix pagination parameter

* add method arguments that switches return array of status or cache_ids

* fix order by

* returns ActiveRecord.Relation in default behavor

* fix codestyle issue
app/controllers/api/v1/timelines/direct_controller.rb
app/models/status.rb
spec/models/status_spec.rb