1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-22 07:42:41 +00:00

Update AP Helpers

This commit is contained in:
Daniel Supernault 2024-10-15 00:13:45 -06:00
parent f81a8be6db
commit 03ad41e2c4
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

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