浏览代码

Merge pull request #5923 from pixelfed/staging

Update InstanceUpdateTotalLocalPosts.php
daniel 3 月之前
父节点
当前提交
7530acc28d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Console/Commands/InstanceUpdateTotalLocalPosts.php

+ 1 - 1
app/Console/Commands/InstanceUpdateTotalLocalPosts.php

@@ -78,7 +78,7 @@ class InstanceUpdateTotalLocalPosts extends Command
     protected function getTotalLocalPosts()
     {
         if ((bool) config('instance.total_count_estimate') && config('database.default') === 'mysql') {
-            return DB::select("EXPLAIN SELECT COUNT(*) FROM statuses WHERE deleted_at IS NULL AND local = 1 AND type != 'share'")[0]->rows;
+            return DB::select("EXPLAIN SELECT COUNT(*) FROM statuses WHERE deleted_at IS NULL AND uri IS NULL and local = 1 AND type != 'share'")[0]->rows;
         }
 
         return DB::table('statuses')