mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Update Inbox, improve status deletion cache invalidation
This commit is contained in:
parent
8018c46f1f
commit
1eba7f810a
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,7 @@ use App\Util\ActivityPub\Validator\UndoFollow as UndoFollowValidator;
|
||||||
|
|
||||||
use App\Services\PollService;
|
use App\Services\PollService;
|
||||||
use App\Services\FollowerService;
|
use App\Services\FollowerService;
|
||||||
|
use App\Services\StatusService;
|
||||||
use App\Models\Conversation;
|
use App\Models\Conversation;
|
||||||
|
|
||||||
class Inbox
|
class Inbox
|
||||||
|
@ -644,6 +645,7 @@ class Inbox
|
||||||
if(!$status) {
|
if(!$status) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
StatusService::del($status->id, true);
|
||||||
Notification::whereActorId($profile->id)
|
Notification::whereActorId($profile->id)
|
||||||
->whereItemType('App\Status')
|
->whereItemType('App\Status')
|
||||||
->whereItemId($status->id)
|
->whereItemId($status->id)
|
||||||
|
|
Loading…
Add table
Reference in a new issue