Skip to content

Commit 990d8ea

Browse files
committed
Update StarterKit import logic to handle Mastodon bug mastodon/mastodon#39544
1 parent d15d948 commit 990d8ea

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

app/Http/Controllers/Api/SearchController.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,12 @@ protected function syncRemoteKitItems(StarterKit $kit, array $items): void
570570
}
571571

572572
$actorUrl = $item['featuredObject'] ?? null;
573-
if (! $actorUrl || ($item['featuredObjectType'] ?? null) !== 'Person') {
573+
// Temporarily disable this due to Mastodon bug https://github.com/mastodon/mastodon/issues/39544
574+
// if (! $actorUrl || ($item['featuredObjectType'] ?? null) !== 'Person') {
575+
// continue;
576+
// }
577+
578+
if (! $actorUrl) {
574579
continue;
575580
}
576581

app/Jobs/StarterKit/SyncStarterKitItemsJob.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ public function handle(ActivityPubService $activityPub, SanitizeService $sanitiz
8282
continue;
8383
}
8484

85-
if (($item['featuredObjectType'] ?? null) !== 'Person') {
86-
continue;
87-
}
85+
// Temporarily disable this due to Mastodon bug https://github.com/mastodon/mastodon/issues/39544
86+
// if (($item['featuredObjectType'] ?? null) !== 'Person') {
87+
// continue;
88+
// }
8889

8990
$itemId = $item['id'] ?? null;
9091
$featuredObject = $item['featuredObject'] ?? null;

0 commit comments

Comments
 (0)