浏览代码

Update AccountController

Daniel Supernault 6 年之前
父节点
当前提交
da2777d52f
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      .circleci/config.yml
  2. 1 0
      app/Http/Controllers/AccountController.php

+ 1 - 1
.circleci/config.yml

@@ -22,7 +22,7 @@ jobs:
       - checkout
 
       - 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
 

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

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