Fix other old Kitsu url references
Some checks failed
timw4mail/HummingBirdAnimeClient/pipeline/head There was a failure building this commit
Some checks failed
timw4mail/HummingBirdAnimeClient/pipeline/head There was a failure building this commit
This commit is contained in:
parent
1914911432
commit
cb23807348
@ -5,7 +5,7 @@ use Aviat\AnimeClient\Kitsu;
|
||||
<h2 class="toph">
|
||||
About
|
||||
<?= $_->h->a(
|
||||
"https://kitsu.io/users/{$data['slug']}",
|
||||
"https://kitsu.app/users/{$data['slug']}",
|
||||
$data['name'], [
|
||||
'title' => 'View profile on Kitsu'
|
||||
])
|
||||
@ -107,4 +107,4 @@ use Aviat\AnimeClient\Kitsu;
|
||||
<?php endif ?>
|
||||
</article>
|
||||
</section>
|
||||
</main>
|
||||
</main>
|
||||
|
@ -113,7 +113,7 @@ final class AnimeTransformer extends AbstractTransformer
|
||||
|
||||
if ((is_countable($base['mappings']['nodes']) ? count($base['mappings']['nodes']) : 0) > 0)
|
||||
{
|
||||
$links = Kitsu::mappingsToUrls($base['mappings']['nodes'], "https://kitsu.io/anime/{$base['slug']}");
|
||||
$links = Kitsu::mappingsToUrls($base['mappings']['nodes'], "https://kitsu.app/anime/{$base['slug']}");
|
||||
}
|
||||
|
||||
return AnimePage::from([
|
||||
@ -138,7 +138,7 @@ final class AnimeTransformer extends AbstractTransformer
|
||||
'titles_more' => $titles_more,
|
||||
'total_length' => $base['totalLength'],
|
||||
'trailer_id' => $base['youtubeTrailerVideoId'],
|
||||
'url' => "https://kitsu.io/anime/{$base['slug']}",
|
||||
'url' => "https://kitsu.app/anime/{$base['slug']}",
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
@ -182,7 +182,7 @@ final class LibraryEntryTransformer extends AbstractTransformer
|
||||
'title' => $title,
|
||||
'titles' => $titles,
|
||||
'type' => (string) StringType::from($manga['subtype'])->upperCaseFirst(),
|
||||
'url' => 'https://kitsu.io/manga/' . $manga['slug'],
|
||||
'url' => 'https://kitsu.app/manga/' . $manga['slug'],
|
||||
]),
|
||||
'reading_status' => strtolower($item['status']),
|
||||
'notes' => $item['notes'],
|
||||
|
@ -94,7 +94,7 @@ final class MangaListTransformer extends AbstractTransformer
|
||||
'title' => $title,
|
||||
'titles' => $titles,
|
||||
'type' => (string) StringType::from($manga['subtype'])->toLowerCase()->upperCaseFirst(),
|
||||
'url' => 'https://kitsu.io/manga/' . $manga['slug'],
|
||||
'url' => 'https://kitsu.app/manga/' . $manga['slug'],
|
||||
]),
|
||||
'reading_status' => strtolower($item['status']),
|
||||
'notes' => $item['notes'],
|
||||
|
@ -114,7 +114,7 @@ final class MangaTransformer extends AbstractTransformer
|
||||
|
||||
if ((is_countable($base['mappings']['nodes']) ? count($base['mappings']['nodes']) : 0) > 0)
|
||||
{
|
||||
$links = Kitsu::mappingsToUrls($base['mappings']['nodes'], "https://kitsu.io/manga/{$base['slug']}");
|
||||
$links = Kitsu::mappingsToUrls($base['mappings']['nodes'], "https://kitsu.app/manga/{$base['slug']}");
|
||||
}
|
||||
|
||||
$data = [
|
||||
@ -134,7 +134,7 @@ final class MangaTransformer extends AbstractTransformer
|
||||
'title' => $title,
|
||||
'titles' => $titles,
|
||||
'titles_more' => $titles_more,
|
||||
'url' => "https://kitsu.io/manga/{$base['slug']}",
|
||||
'url' => "https://kitsu.app/manga/{$base['slug']}",
|
||||
];
|
||||
|
||||
return MangaPage::from($data);
|
||||
|
@ -2,7 +2,7 @@ schema: schema.graphql
|
||||
extensions:
|
||||
endpoints:
|
||||
Kitsu:
|
||||
url: https://kitsu.io/api/graphql
|
||||
url: https://kitsu.app/api/graphql
|
||||
headers:
|
||||
user-agent: JS GraphQL
|
||||
introspect: true
|
||||
|
@ -227,9 +227,9 @@ class Controller
|
||||
protected function renderFullPage(HtmlView $view, string $template, array $data): HtmlView
|
||||
{
|
||||
$csp = [
|
||||
"default-src 'self' media.kitsu.io kitsu-production-media.s3.us-west-002.backblazeb2.com",
|
||||
"default-src 'self' media.kitsu.app kitsu-production-media.s3.us-west-002.backblazeb2.com",
|
||||
"object-src 'none'",
|
||||
"child-src 'self' *.youtube.com polyfill.io",
|
||||
"child-src 'self' *.youtube.com",
|
||||
];
|
||||
|
||||
$data = array_merge($this->baseData ?? [], $data);
|
||||
|
@ -40,7 +40,7 @@ final class Images extends BaseController
|
||||
{
|
||||
$currentUrl = (string) $this->request->getUri();
|
||||
|
||||
$kitsuUrl = 'https://media.kitsu.io/';
|
||||
$kitsuUrl = 'https://media.kitsu.app/';
|
||||
$fileName = str_replace('-original', '', $file);
|
||||
[$id, $ext] = explode('.', basename($fileName));
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
empty: false
|
||||
about: 'Web Developer, Anime Fan, Reader of VNs, and web comics.'
|
||||
avatar: 'https://media.kitsu.io/users/avatars/2644/original.gif'
|
||||
birthday: 'March 09, 1990 (33 years)'
|
||||
birthday: 'March 09, 1990 (34 years)'
|
||||
joinDate: ''
|
||||
gender: male
|
||||
favorites:
|
||||
|
Loading…
Reference in New Issue
Block a user