From 361fd9ed42ae08c8811636de7ea2ca5bb356ab90 Mon Sep 17 00:00:00 2001 From: Andrei Kurilov <18027129+akurilov@users.noreply.github.com> Date: Sun, 28 Jul 2024 08:36:47 +0300 Subject: [PATCH] feat: try to rewrite link rel=me --- helm/webapp/templates/ingress.yaml | 5 ++++- web/status.js | 3 ++- web/sub-details.html | 7 ++++--- web/sub-details.js | 1 - web/sub.html | 2 +- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/helm/webapp/templates/ingress.yaml b/helm/webapp/templates/ingress.yaml index 2204c6b..d6a6597 100644 --- a/helm/webapp/templates/ingress.yaml +++ b/helm/webapp/templates/ingress.yaml @@ -24,7 +24,10 @@ metadata: nginx.ingress.kubernetes.io/ssl-redirect: "true" nginx.ingress.kubernetes.io/force-ssl-redirect: "true" nginx.ingress.kubernetes.io/configuration-snippet: | - more_set_headers "etag: 9ffa673"; + more_set_headers "etag: 2f2b4c8"; + sub_filter_once off; + sub_filter_types *; + sub_filter 'https://activitypub.awakari.com@' 'https://activitypub.awakari.com@$arg_id'; spec: {{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }} ingressClassName: {{ .Values.ingress.className }} diff --git a/web/status.js b/web/status.js index 12a5aaf..2a21b3f 100644 --- a/web/status.js +++ b/web/status.js @@ -12,7 +12,7 @@ const templateSrcPopular = (share, url) => ` const templateIntPopular = (id, data) => `
- ${data.hasOwnProperty("followers") ? data.followers : '?'} + ${data.hasOwnProperty("followers") ? data.followers : '0'} ${data.description}
` @@ -178,6 +178,7 @@ async function loadStatus() { let count = 0; Object .entries(data.interestsMostFollowed) + .filter(e => e[1].hasOwnProperty("followers")) .sort((a, b) => b[1].followers - a[1].followers) .slice(0, 5) .forEach(e => { diff --git a/web/sub-details.html b/web/sub-details.html index bdf0d87..cf76d95 100644 --- a/web/sub-details.html +++ b/web/sub-details.html @@ -18,11 +18,12 @@ - + + + -