about summary refs log tree commit diff
path: root/app/lib/importer
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-08-21 14:39:25 +0200
committerClaire <claire.github-309c@sitedethib.com>2022-08-21 14:39:25 +0200
commit0b37299775acd5804041cce21567fcf069082d83 (patch)
tree2dd713de36bf74a4005dec9060f58df7981f01d0 /app/lib/importer
parentaba0032f540407d88144ac637a59fce69625546f (diff)
parent5920d8fe33d5ecb0c7ca20c3b255216bb8de4aa9 (diff)
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/lib/importer')
-rw-r--r--app/lib/importer/statuses_index_importer.rb2
1 files changed, 1 insertions, 1 deletions
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