wzq 5 éve
szülő
commit
b965202b5d
1 módosított fájl, 2 hozzáadás és 0 törlés
  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),
                 ]
             ]);