Skip to content

Commit

Permalink
Optimize discussion list
Browse files Browse the repository at this point in the history
  • Loading branch information
jcc committed May 4, 2018
1 parent dd46da2 commit 95c411f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/discussion/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div class="media my-3">
<div class="media-left mr-3">
<a href="{{ url('discussion', ['id' => $discussion->id]) }}">
<img class="media-object rounded-circle" width="50" src="{{ $discussion->user->avatar }}">
<img class="media-object rounded-circle" width="50" src="{{ $discussion->user->avatar ?? config('blog.default_avatar') }}">
</a>
</div>
<div class="media-body">
Expand Down

0 comments on commit 95c411f

Please sign in to comment.