This commit is contained in:
kakkokari-gtyih 2023-12-22 20:19:28 +09:00
parent d5b6ce157c
commit 2ce5efe09e
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ function doPost(e) {
function postToMisskey(d) { function postToMisskey(d) {
var data = { var data = {
i: MI_API_TOKEN, i: MI_API_TOKEN,
text: `$[tada 📢] **Misskey Hub <small>(Next)</small> が更新されました!** text: `$[tada 📢] **Misskey Hub が更新されました!**
早速チェックしましょう ▶ ${d?.repository?.homepage ?? 'https://misskey-hub.net/'}`, 早速チェックしましょう ▶ ${d?.repository?.homepage ?? 'https://misskey-hub.net/'}`,
visibility: 'public', visibility: 'public',
cw: null, cw: null,

View File

@ -3,7 +3,7 @@ import TopIco from 'bi/chevron-up.svg';
import type { LocaleObject } from '@nuxtjs/i18n/dist/runtime/composables'; import type { LocaleObject } from '@nuxtjs/i18n/dist/runtime/composables';
import NProgress from 'nprogress'; import NProgress from 'nprogress';
import type { Graph, Thing } from 'schema-dts'; import type { Graph, Thing } from 'schema-dts';
import { normalizeURL, withTrailingSlash } from 'ufo'; import { cleanDoubleSlashes, withTrailingSlash } from 'ufo';
const nuxtApp = useNuxtApp(); const nuxtApp = useNuxtApp();
@ -127,7 +127,7 @@ useHead((): Record<string, any> => ({
...(head.value.meta?.map((e) => ({ property: e.property, content: e.content, })) || []), ...(head.value.meta?.map((e) => ({ property: e.property, content: e.content, })) || []),
], ],
link: [ link: [
...(head.value.link?.map((e) => ({ rel: e.rel, href: normalizeURL(withTrailingSlash(e.href)), hreflang: e.hreflang, })) || []), ...(head.value.link?.map((e) => ({ rel: e.rel, href: cleanDoubleSlashes(withTrailingSlash(e.href)), hreflang: e.hreflang, })) || []),
...cnHead, ...cnHead,
], ],
script: [ script: [