Skip to content

Commit

Permalink
fix(feed): ( isses zhiyicx/thinksns-plus-android#2201 ) Fixed builder…
Browse files Browse the repository at this point in the history
… participants query SQL not append `topic_id` column
  • Loading branch information
medz committed Aug 3, 2018
1 parent 588b264 commit 80c6c63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/API2/Controllers/Feed/Topic.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ public function show(FeedTopicModel $topic): JsonResponse
$topic->participants = $topic
->users()
->newPivotStatement()
->where('topic_id', $topic->id)
->where('user_id', '!=', $topic->creator_user_id)
->orderBy(Model::UPDATED_AT, 'desc')
->limit(3)
Expand Down

0 comments on commit 80c6c63

Please sign in to comment.