|
@@ -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),
|
|
]
|
|
]
|
|
]);
|
|
]);
|