mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 01:05:36 +00:00
Merge pull request #931 from pixelfed/frontend-ui-refactor
Frontend ui refactor
This commit is contained in:
commit
e4a6390e8f
2 changed files with 1 additions and 4 deletions
|
@ -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 a new issue