wzq лет назад: 5
Родитель
Сommit
b965202b5d
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      app/Repositories/Post/PostRepository.php

+ 2 - 0
app/Repositories/Post/PostRepository.php

@@ -286,6 +286,7 @@ class PostRepository
                     'uid' => $userInfo['uid'],
                     'username' => $userInfo['username'],
                     'post_id' => $post->id,
+                    'cover' => $post->img,
                     'content' => subtext($request['content'], 20),
                 ]
             ]);
@@ -297,6 +298,7 @@ class PostRepository
                     'uid' => $userInfo['uid'],
                     'username' => $userInfo['username'],
                     'post_id' => $post->id,
+                    'cover' => $post->img,
                     'content' => subtext($request['content'], 20),
                 ]
             ]);