]> Untitled Git - lemmy.git/commitdiff
Browser notification as plain markdown. Fixes #618
authorDessalines <tyhou13@gmx.com>
Wed, 1 Apr 2020 15:31:24 +0000 (11:31 -0400)
committerDessalines <tyhou13@gmx.com>
Wed, 1 Apr 2020 15:31:24 +0000 (11:31 -0400)
ui/src/components/navbar.tsx

index ea9b619b80b69f1060b998a8da5b56f01efb16b1..d7f3b5a8a1163ec1663f681e74b5cc59c8cc9881 100644 (file)
@@ -375,12 +375,13 @@ export class Navbar extends Component<any, NavbarState> {
     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
     );