|
|
@ -8,7 +8,8 @@ use App\{
|
|
|
|
UserFilter
|
|
|
|
UserFilter
|
|
|
|
};
|
|
|
|
};
|
|
|
|
use App\Services\NotificationService;
|
|
|
|
use App\Services\NotificationService;
|
|
|
|
use DB, Cache, Log, Redis;
|
|
|
|
use DB, Cache, Log;
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Redis;
|
|
|
|
|
|
|
|
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
@ -57,6 +58,7 @@ class CommentPipeline implements ShouldQueue
|
|
|
|
if ($actor->id === $target->id || $status->comments_disabled == true) {
|
|
|
|
if ($actor->id === $target->id || $status->comments_disabled == true) {
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$filtered = UserFilter::whereUserId($target->id)
|
|
|
|
$filtered = UserFilter::whereUserId($target->id)
|
|
|
|
->whereFilterableType('App\Profile')
|
|
|
|
->whereFilterableType('App\Profile')
|
|
|
|
->whereIn('filter_type', ['mute', 'block'])
|
|
|
|
->whereIn('filter_type', ['mute', 'block'])
|
|
|
|