wzq 5 年 前
コミット
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'],
                     'uid' => $userInfo['uid'],
                     'username' => $userInfo['username'],
                     'username' => $userInfo['username'],
                     'post_id' => $post->id,
                     'post_id' => $post->id,
+                    'cover' => $post->img,
                     'content' => subtext($request['content'], 20),
                     'content' => subtext($request['content'], 20),
                 ]
                 ]
             ]);
             ]);
@@ -297,6 +298,7 @@ class PostRepository
                     'uid' => $userInfo['uid'],
                     'uid' => $userInfo['uid'],
                     'username' => $userInfo['username'],
                     'username' => $userInfo['username'],
                     'post_id' => $post->id,
                     'post_id' => $post->id,
+                    'cover' => $post->img,
                     'content' => subtext($request['content'], 20),
                     'content' => subtext($request['content'], 20),
                 ]
                 ]
             ]);
             ]);