From b359e3263046a8313099e2464f447d7a33f4682a Mon Sep 17 00:00:00 2001 From: Ziedelth Date: Fri, 29 Mar 2024 14:08:50 +0100 Subject: [PATCH 1/2] Fix some AHREFS alerts --- src/main/resources/templates/site/anime.ftl | 2 +- .../resources/templates/site/calendar.ftl | 4 ++- src/main/resources/templates/site/catalog.ftl | 26 ++++++++++++------- src/main/resources/templates/site/home.ftl | 4 ++- src/main/resources/templates/site/search.ftl | 4 ++- .../resources/templates/site/seo/sitemap.ftl | 8 ++++++ 6 files changed, 35 insertions(+), 13 deletions(-) diff --git a/src/main/resources/templates/site/anime.ftl b/src/main/resources/templates/site/anime.ftl index 7fc7d780..8640b318 100644 --- a/src/main/resources/templates/site/anime.ftl +++ b/src/main/resources/templates/site/anime.ftl @@ -11,7 +11,7 @@
-
${anime.shortName?upper_case}
+

${anime.shortName?upper_case}

${anime.name}

<#if (anime.simulcasts?size > 1)> diff --git a/src/main/resources/templates/site/calendar.ftl b/src/main/resources/templates/site/calendar.ftl index 352eb84e..2f1c0256 100644 --- a/src/main/resources/templates/site/calendar.ftl +++ b/src/main/resources/templates/site/calendar.ftl @@ -1,6 +1,8 @@ <#import "_navigation.ftl" as navigation /> -<@navigation.display> +<#assign canonicalUrl = "" /> + +<@navigation.display header="${canonicalUrl}">
diff --git a/src/main/resources/templates/site/catalog.ftl b/src/main/resources/templates/site/catalog.ftl index 8362a3e3..e6c3d695 100644 --- a/src/main/resources/templates/site/catalog.ftl +++ b/src/main/resources/templates/site/catalog.ftl @@ -2,18 +2,26 @@ <#import "components/episode.ftl" as episodeComponent /> <#import "components/anime.ftl" as animeComponent /> -<@navigation.display> +<#assign canonicalUrl = "" /> + +<@navigation.display header="${canonicalUrl}">
<#if selectedSimulcast??> - +
+

Simulcast par saison

- +
+ + + +
+
<#list animes as anime> diff --git a/src/main/resources/templates/site/home.ftl b/src/main/resources/templates/site/home.ftl index ea29b935..c24bbeaa 100644 --- a/src/main/resources/templates/site/home.ftl +++ b/src/main/resources/templates/site/home.ftl @@ -2,7 +2,9 @@ <#import "components/episode.ftl" as episodeComponent /> <#import "components/anime.ftl" as animeComponent /> -<@navigation.display> +<#assign canonicalUrl = "" /> + +<@navigation.display header="${canonicalUrl}">

Nouveaux épisodes

<#if episodes?? && episodes?size != 0> diff --git a/src/main/resources/templates/site/search.ftl b/src/main/resources/templates/site/search.ftl index db385bf3..5f63b4d4 100644 --- a/src/main/resources/templates/site/search.ftl +++ b/src/main/resources/templates/site/search.ftl @@ -1,6 +1,8 @@ <#import "_navigation.ftl" as navigation /> -<@navigation.display> +<#assign canonicalUrl = "" /> + +<@navigation.display header="${canonicalUrl}">
diff --git a/src/main/resources/templates/site/seo/sitemap.ftl b/src/main/resources/templates/site/seo/sitemap.ftl index fa65c1b1..af5fca64 100644 --- a/src/main/resources/templates/site/seo/sitemap.ftl +++ b/src/main/resources/templates/site/seo/sitemap.ftl @@ -6,7 +6,15 @@ ${baseUrl}/ ${episode.releaseDateTime?replace("Z", "+00:00")} + + ${baseUrl}/calendar + ${episode.releaseDateTime?replace("Z", "+00:00")} + + + ${baseUrl}/search + 2024-03-20T17:00:00+00:00 + <#list simulcasts as simulcast> ${baseUrl}/catalog/${simulcast.slug} From c12f5843dd912109f8dfdeb55b1037bd18957be9 Mon Sep 17 00:00:00 2001 From: Ziedelth Date: Fri, 29 Mar 2024 15:34:03 +0100 Subject: [PATCH 2/2] Remove APNS config --- .../kotlin/fr/shikkanime/utils/FirebaseNotification.kt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/kotlin/fr/shikkanime/utils/FirebaseNotification.kt b/src/main/kotlin/fr/shikkanime/utils/FirebaseNotification.kt index 048cdc3a..f50425f5 100644 --- a/src/main/kotlin/fr/shikkanime/utils/FirebaseNotification.kt +++ b/src/main/kotlin/fr/shikkanime/utils/FirebaseNotification.kt @@ -3,7 +3,10 @@ package fr.shikkanime.utils import com.google.auth.oauth2.GoogleCredentials import com.google.firebase.FirebaseApp import com.google.firebase.FirebaseOptions -import com.google.firebase.messaging.* +import com.google.firebase.messaging.AndroidConfig +import com.google.firebase.messaging.FirebaseMessaging +import com.google.firebase.messaging.Message +import com.google.firebase.messaging.Notification import fr.shikkanime.dtos.EpisodeDto import java.io.File import java.io.FileInputStream @@ -43,11 +46,6 @@ object FirebaseNotification { .setPriority(AndroidConfig.Priority.HIGH) .build() ) - .setApnsConfig( - ApnsConfig.builder() - .putHeader("apns-priority", "5") - .build() - ) .setTopic("global") .build() )