mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 01:33:16 +00:00
Update AccountController
This commit is contained in:
parent
143e4e4ef6
commit
da2777d52f
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue