wzq 5 jaren geleden
bovenliggende
commit
51cd6aac58
1 gewijzigde bestanden met toevoegingen van 3 en 0 verwijderingen
  1. 3 0
      app/Repositories/PostRepositories.php

+ 3 - 0
app/Repositories/PostRepositories.php

@@ -228,6 +228,7 @@ class PostRepositories
                         'uid' => $userInfo['uid'],
                         'username' => $userInfo['username'],
                         'post_id' => $post->id,
+                        'cover' => $post->img,
                         'content' => subtext($request['content'], 20),
                     ]
                 ]);
@@ -241,6 +242,7 @@ class PostRepositories
                         'uid' => $userInfo['uid'],
                         'username' => $userInfo['username'],
                         'post_id' => $post->id,
+                        'cover' => $post->img,
                         'content' => subtext($request['content'], 20),
                     ]
                 ]);
@@ -253,6 +255,7 @@ class PostRepositories
                     'uid' => $userInfo['uid'],
                     'username' => $userInfo['username'],
                     'post_id' => $post->id,
+                    'cover' => $post->img,
                     'content' => subtext($request['content'], 20),
                 ]
             ]);