From d49a054c38b9a32e5c92c3b0d0d97d24ea5d7881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Miko=C5=82ajczak?= Date: Fri, 1 Jun 2018 16:12:10 +0200 Subject: [PATCH] =?UTF-8?q?Do=20not=20show=20=E2=80=9CFollow=E2=80=9D=20in?= =?UTF-8?q?=20notifications=20if=20already=20followed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Mikołajczak --- resources/views/account/activity.blade.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/views/account/activity.blade.php b/resources/views/account/activity.blade.php index 26165be84..241d46f8a 100644 --- a/resources/views/account/activity.blade.php +++ b/resources/views/account/activity.blade.php @@ -28,6 +28,7 @@ {!! $notification->rendered !!} {{$notification->created_at->diffForHumans(null, true, true, true)}} + @if($notification->actor->followedBy(Auth::user()->profile) == false) + @endif @break @endswitch @@ -42,4 +44,4 @@ -@endsection \ No newline at end of file +@endsection