Skip to content

Commit

Permalink
fix(feed): 修复直接访问保护成员进行查询
Browse files Browse the repository at this point in the history
  • Loading branch information
medz committed Jul 31, 2018
1 parent 427543c commit 0669c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/API2/Controllers/Feed/Topic.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public function show(FeedTopicModel $topic): JsonResponse
{
$topic->participants = $topic
->users()
->newPivotQuery()
->newPivotStatement()
->where('user_id', '!=', $topic->creator_user_id)
->orderBy(Model::UPDATED_AT, 'desc')
->limit(3)
Expand Down

0 comments on commit 0669c84

Please sign in to comment.