Compare commits

..

No commits in common. "main" and "implement_auth" have entirely different histories.

1 changed files with 2 additions and 5 deletions

View File

@ -2,7 +2,6 @@ import asyncio
from html import escape
import json
from typing import Any, Dict, Tuple, List, Awaitable, Callable
import markdown
from aiohttp import ClientTimeout
from maubot import MessageEvent, Plugin
@ -640,11 +639,9 @@ class NtfyBot(Plugin):
if click and not title:
html_content += "%s<a href=\"%s\">%s</a>" % (
emoji, escape(click),
markdown.markdown(escape(body))
.replace("\n", "<br />"))
escape(body).replace("\n", "<br />"))
else:
html_content += (emoji + markdown.markdown(escape(body))
.replace("\n", "<br />"))
html_content += emoji + escape(body).replace("\n", "<br />")
# add non-emoji tags
if tags: