Browse Source

Fix Post\Feed

Visman 5 years ago
parent
commit
08b69c3d2b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/Models/Post/Feed.php

+ 3 - 0
app/Models/Post/Feed.php

@@ -36,6 +36,9 @@ class Feed extends Action
 
         } else if ($model instanceof Forum) {
             $ids = \array_keys($model->descendants);
+            if ($model->id) {
+                $ids[] = $model->id;
+            }
 
             if (empty($ids)) {
                 return [];