1
0
Fork 0
forked from mirror/pixelfed

Merge pull request #931 from pixelfed/frontend-ui-refactor

Frontend ui refactor
This commit is contained in:
daniel 2019-03-02 12:30:56 -07:00 committed by GitHub
commit e4a6390e8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View file

@ -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()

View file

@ -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>