]> cat aescling's git repositories - mastodon.git/commitdiff
Fix ambiguous column names in `tootctl search deploy` (#18993)
authorMashiro <moezhx@outlook.com>
Wed, 17 Aug 2022 21:07:12 +0000 (05:07 +0800)
committeraescling <aescling+gitlab@cat.family>
Mon, 5 Sep 2022 04:27:59 +0000 (00:27 -0400)
app/lib/importer/statuses_index_importer.rb

index 7c6532560064fa4098c335458ffd20f35fa23fa2..5b5153d5c866d273ca5a1eeb48bfabc483ebf8f9 100644 (file)
@@ -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