diff --git a/deploy.sh b/deploy.sh index ce125fcd..c53988d2 100755 --- a/deploy.sh +++ b/deploy.sh @@ -4,7 +4,7 @@ set -e new_tag="$1" # Old deploy -# sudo docker build . --tag dessalines/lemmy-ui:$new_tag +# sudo docker build . --tag dessalines/lemmy-ui:$new_tag --platform=linux/amd64 # sudo docker push dessalines/lemmy-ui:$new_tag # Upgrade version diff --git a/src/server/index.tsx b/src/server/index.tsx index b7f4fb5f..8d9bb255 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -9,7 +9,6 @@ import IsomorphicCookie from "isomorphic-cookie"; import { GetSite, GetSiteResponse, LemmyHttp, Site } from "lemmy-js-client"; import path from "path"; import process from "process"; -import sanitize from "sanitize-html"; import serialize from "serialize-javascript"; import sharp from "sharp"; import { App } from "../shared/components/app/app"; @@ -348,7 +347,7 @@ async function createSsrHtml(root: string, isoData: IsoDataOptionalSite) {
- + diff --git a/src/shared/utils.ts b/src/shared/utils.ts index f98fa563..c7a5da03 100644 --- a/src/shared/utils.ts +++ b/src/shared/utils.ts @@ -207,12 +207,12 @@ export function hotRank(score: number, timeStr: string): number { export function mdToHtml(text: string) { // restore '>' character to fix quotes - return { __html: md.render(text.split(">").join(">")) }; + return { __html: md.render(text) }; } export function mdToHtmlNoImages(text: string) { // restore '>' character to fix quotes - return { __html: mdNoImages.render(text.split(">").join(">")) }; + return { __html: mdNoImages.render(text) }; } export function mdToHtmlInline(text: string) {