From: Mashiro Date: Wed, 17 Aug 2022 21:07:12 +0000 (+0800) Subject: Fix ambiguous column names in `tootctl search deploy` (#18993) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=a31a64eeff4c3f48a3f495b6c46d338905ed4f0e;p=mastodon.git Fix ambiguous column names in `tootctl search deploy` (#18993) --- diff --git a/app/lib/importer/statuses_index_importer.rb b/app/lib/importer/statuses_index_importer.rb index 7c6532560..5b5153d5c 100644 --- a/app/lib/importer/statuses_index_importer.rb +++ b/app/lib/importer/statuses_index_importer.rb @@ -84,6 +84,6 @@ class Importer::StatusesIndexImporter < Importer::BaseImporter end def local_statuses_scope - Status.local.select('id, coalesce(reblog_of_id, id) as status_id') + Status.local.select('"statuses"."id", COALESCE("statuses"."reblog_of_id", "statuses"."id") AS status_id') end end