From: Dessalines Date: Wed, 1 Apr 2020 15:31:24 +0000 (-0400) Subject: Browser notification as plain markdown. Fixes #618 X-Git-Url: http://these/git/%22https:/join-lemmy.org/README.ja.md?a=commitdiff_plain;h=0b467cfeed0493a6594d4e1d0457887f81cbe702;p=lemmy.git Browser notification as plain markdown. Fixes #618 --- diff --git a/ui/src/components/navbar.tsx b/ui/src/components/navbar.tsx index ea9b619b..d7f3b5a8 100644 --- a/ui/src/components/navbar.tsx +++ b/ui/src/components/navbar.tsx @@ -375,12 +375,13 @@ export class Navbar extends Component { let link = isCommentType(reply) ? `/post/${reply.post_id}/comment/${reply.id}` : `/inbox`; - let body = md.render(reply.content); + let htmlBody = md.render(reply.content); + let body = reply.content; // Unfortunately the notifications API can't do html messageToastify( creator_name, creator_avatar, - body, + htmlBody, link, this.context.router );