forked from mirror/pixelfed
Merge pull request #931 from pixelfed/frontend-ui-refactor
Frontend ui refactor
This commit is contained in:
commit
e4a6390e8f
|
@ -37,7 +37,7 @@ class DiscoverController extends Controller
|
|||
|
||||
$page = $request->input('page') ?? 1;
|
||||
$key = 'discover:tag-'.$tag->id.':page-'.$page;
|
||||
$keyMinutes = $page > 1 ? 5 : 2;
|
||||
$keyMinutes = $page == 1 ? 15 : 5;
|
||||
|
||||
$posts = Cache::remember($key, now()->addMinutes($keyMinutes), function() use ($tag, $request) {
|
||||
return $tag->posts()
|
||||
|
|
|
@ -15,9 +15,6 @@
|
|||
<div class="username-bar pb-2 d-flex align-items-center">
|
||||
<span class="h1">{{$tag->name}}</span>
|
||||
</div>
|
||||
<p class="font-weight-bold">
|
||||
{{$tag->posts_count}} posts
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue