mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-19 03:25:29 +00:00
Browser notification as plain markdown. Fixes #618
This commit is contained in:
parent
4aec451584
commit
0b467cfeed
5
ui/src/components/navbar.tsx
vendored
5
ui/src/components/navbar.tsx
vendored
@ -375,12 +375,13 @@ export class Navbar extends Component<any, NavbarState> {
|
|||||||
let link = isCommentType(reply)
|
let link = isCommentType(reply)
|
||||||
? `/post/${reply.post_id}/comment/${reply.id}`
|
? `/post/${reply.post_id}/comment/${reply.id}`
|
||||||
: `/inbox`;
|
: `/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(
|
messageToastify(
|
||||||
creator_name,
|
creator_name,
|
||||||
creator_avatar,
|
creator_avatar,
|
||||||
body,
|
htmlBody,
|
||||||
link,
|
link,
|
||||||
this.context.router
|
this.context.router
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user