Update AccountController

pull/547/head
Daniel Supernault 6 years ago
parent 143e4e4ef6
commit da2777d52f
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -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

@ -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);

Loading…
Cancel
Save