feat: access archived chats as admin

This commit is contained in:
Timothy J. Baek
2024-05-26 02:00:31 -07:00
parent 62d37f1f10
commit e20bb23409
4 changed files with 90 additions and 52 deletions

View File

@@ -82,7 +82,7 @@
// Open all links in a new tab/window (from https://github.com/markedjs/marked/issues/655#issuecomment-383226346)
const origLinkRenderer = renderer.link;
renderer.link = (href, title, text) => {
renderer.link = (href, title, text) => {
const html = origLinkRenderer.call(renderer, href, title, text);
return html.replace(/^<a /, '<a target="_blank" rel="nofollow" ');
};

View File

@@ -17,9 +17,7 @@ export const sanitizeResponseContent = (content: string) => {
};
export const revertSanitizedResponseContent = (content: string) => {
return content
.replaceAll('&lt;', '<')
.replaceAll('&gt;', '>');
return content.replaceAll('&lt;', '<').replaceAll('&gt;', '>');
};
export const capitalizeFirstLetter = (string) => {