mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update status template
This commit is contained in:
parent
b3dd0a1a9d
commit
aa32b8020c
2 changed files with 4 additions and 10 deletions
|
@ -60,8 +60,8 @@ class AccountController extends Controller
|
||||||
|
|
||||||
public function confirmVerifyEmail(Request $request, $userToken, $randomToken)
|
public function confirmVerifyEmail(Request $request, $userToken, $randomToken)
|
||||||
{
|
{
|
||||||
$verify = EmailVerification::where(DB::raw('BINARY `user_token`'), $userToken)
|
$verify = EmailVerification::where(DB::raw('BINARY user_token'), $userToken)
|
||||||
->where(DB::raw('BINARY `random_token`'), $randomToken)
|
->where(DB::raw('BINARY random_token'), $randomToken)
|
||||||
->firstOrFail();
|
->firstOrFail();
|
||||||
if(Auth::id() === $verify->user_id) {
|
if(Auth::id() === $verify->user_id) {
|
||||||
$user = User::find(Auth::id());
|
$user = User::find(Auth::id());
|
||||||
|
|
|
@ -74,7 +74,7 @@
|
||||||
</div>
|
</div>
|
||||||
@if($item->comments()->count() > 3)
|
@if($item->comments()->count() > 3)
|
||||||
<div class="more-comments">
|
<div class="more-comments">
|
||||||
<a class="text-muted" href="#">Load more comments</a>
|
<a class="text-muted" href="{{$item->url()}}">Load more comments</a>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
<div class="comments">
|
<div class="comments">
|
||||||
|
@ -93,12 +93,6 @@
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
@else
|
@else
|
||||||
@foreach($item->comments->reverse()->take(3) as $comment)
|
|
||||||
<p class="mb-0">
|
|
||||||
<span class="font-weight-bold pr-1"><bdi><a class="text-dark" href="{{$comment->profile->url()}}">{{$comment->profile->username}}</a></bdi></span>
|
|
||||||
<span class="comment-text">{!! str_limit($item->rendered ?? e($item->caption), 150) !!}</span>
|
|
||||||
</p>
|
|
||||||
@endforeach
|
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<div class="timestamp pt-1">
|
<div class="timestamp pt-1">
|
||||||
|
|
Loading…
Reference in a new issue