]> cat aescling's git repositories - mastodon.git/commit
Fix search error when ElasticSearch is enabled but not available (#11954)
authorJeong Arm <kjwonmail@gmail.com>
Thu, 26 Sep 2019 16:06:08 +0000 (01:06 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 26 Sep 2019 16:06:08 +0000 (18:06 +0200)
commit00d7bdcc2adcc15fe1a95862478cb9b43065a4b0
tree24c151f72d48859fa51f31cebd450175b64ce248
parent5034418e2c41fbd51fc85458dd3fdba72a672625
Fix search error when ElasticSearch is enabled but not available (#11954)

* Fallback to Database search when ES not available

* Prevent double work if ES gives 0 result

* Apply suggestion from code review
app/services/account_search_service.rb
app/services/tag_search_service.rb