Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
summerblue committed Aug 13, 2017
1 parent 84b366f commit 55a8571
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Models/Traits/TopicFilterable.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ public function applyFilter($filter)

switch ($filter) {
case 'noreply':
return $query->pinned()->orderBy('reply_count', 'asc')->recent();
return $query->pinned()->withoutShareLink()->orderBy('reply_count', 'asc')->recent();
break;
case 'vote':
return $query->pinned()->orderBy('vote_count', 'desc')->recent();
return $query->pinned()->withoutShareLink()->orderBy('vote_count', 'desc')->recent();
break;
case 'excellent':
return $query->excellent()->recent();
Expand All @@ -60,7 +60,7 @@ public function applyFilter($filter)
return $query->excellent()->fresh()->random();
break;
case 'recent':
return $query->pinned()->recent();
return $query->pinned()->withoutShareLink()->recent();
break;
case 'category':
return $query->pinned()->recentReply();
Expand Down

0 comments on commit 55a8571

Please sign in to comment.