From 72011f8f37e9ae3473d5b7e0e32a8b7b4bce2178 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 1 Aug 2023 17:45:22 -0700 Subject: [PATCH] refactor: :recycle: MkGoogle uses local search --- packages/backend/src/mfm/to-html.ts | 2 +- packages/client/src/components/MkGoogle.vue | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/backend/src/mfm/to-html.ts b/packages/backend/src/mfm/to-html.ts index 8d8a4a8889..65decee83d 100644 --- a/packages/backend/src/mfm/to-html.ts +++ b/packages/backend/src/mfm/to-html.ts @@ -156,7 +156,7 @@ export function toHtml( search(node) { const a = doc.createElement("a"); - a.href = `https://search.annoyingorange.xyz/search?q=${node.props.query}`; + a.href = `/search/${node.props.query}`; a.textContent = node.props.content; return a; }, diff --git a/packages/client/src/components/MkGoogle.vue b/packages/client/src/components/MkGoogle.vue index cec4930471..4244bb22d4 100644 --- a/packages/client/src/components/MkGoogle.vue +++ b/packages/client/src/components/MkGoogle.vue @@ -11,6 +11,9 @@