Forráskód Böngészése

Update AccountController

Daniel Supernault 6 éve
szülő
commit
da2777d52f

+ 1 - 1
.circleci/config.yml

@@ -22,7 +22,7 @@ jobs:
       - checkout
       - checkout
 
 
       - run: sudo apt update && sudo apt install zlib1g-dev libsqlite3-dev
       - run: sudo apt update && sudo apt install zlib1g-dev libsqlite3-dev
-      - run: sudo docker-php-ext-install zip
+      - run: sudo docker-php-ext-install pcntl
 
 
       # Download and cache dependencies
       # Download and cache dependencies
 
 

+ 1 - 0
app/Http/Controllers/AccountController.php

@@ -70,6 +70,7 @@ class AccountController extends Controller
         $notifications = Notification::whereIn('actor_id', $following)
         $notifications = Notification::whereIn('actor_id', $following)
           ->whereIn('action', $allowed)
           ->whereIn('action', $allowed)
           ->where('actor_id', '<>', $profile->id)
           ->where('actor_id', '<>', $profile->id)
+          ->where('profile_id', '<>', $profile->id)
           ->whereDate('created_at', '>', $timeago)
           ->whereDate('created_at', '>', $timeago)
           ->orderBy('notifications.created_at', 'desc')
           ->orderBy('notifications.created_at', 'desc')
           ->simplePaginate(30);
           ->simplePaginate(30);