mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-08 15:54:51 +00:00
Update AP Helpers
This commit is contained in:
parent
f81a8be6db
commit
03ad41e2c4
1 changed files with 6 additions and 0 deletions
|
@ -9,6 +9,7 @@ use App\Jobs\MediaPipeline\MediaStoragePipeline;
|
|||
use App\Jobs\StatusPipeline\StatusReplyPipeline;
|
||||
use App\Jobs\StatusPipeline\StatusTagsPipeline;
|
||||
use App\Media;
|
||||
use App\Models\ModeratedProfile;
|
||||
use App\Models\Poll;
|
||||
use App\Profile;
|
||||
use App\Services\Account\AccountStatService;
|
||||
|
@ -814,6 +815,11 @@ class Helpers
|
|||
if (! self::validateUrl($res['id'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (ModeratedProfile::whereProfileUrl($res['id'])->whereIsBanned(true)->exists()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$urlDomain = parse_url($url, PHP_URL_HOST);
|
||||
$domain = parse_url($res['id'], PHP_URL_HOST);
|
||||
if (strtolower($urlDomain) !== strtolower($domain)) {
|
||||
|
|
Loading…
Reference in a new issue