wzq před 5 roky
rodič
revize
b965202b5d
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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),
                 ]
             ]);