Merge commit '6d2493ca7c39a5d60edd7109de0c24256f8fff8c' into glitch-soc/merge-upstream
This commit is contained in:
commit
4053209a05
61 files changed
+237
-234
No files matched your search
+1
-1
@@ -64,7 +64,7 @@ export const EmbeddedStatusContent: React.FC<{
|
||||
link.setAttribute('title', `@${mention.get('acct')}`);
|
||||
link.setAttribute('href', `/@${mention.get('acct')}`);
|
||||
} else if (
|
||||
link.textContent?.[0] === '#' ||
|
||||
link.textContent.startsWith('#') ||
|
||||
link.previousSibling?.textContent?.endsWith('#')
|
||||
) {
|
||||
link.addEventListener(
|
||||
|
||||
@@ -54,9 +54,7 @@ export const Profile: React.FC<{
|
||||
me ? state.accounts.get(me) : undefined,
|
||||
);
|
||||
const [displayName, setDisplayName] = useState(account?.display_name ?? '');
|
||||
const [note, setNote] = useState(
|
||||
account ? (unescapeHTML(account.note) ?? '') : '',
|
||||
);
|
||||
const [note, setNote] = useState(account ? unescapeHTML(account.note) : '');
|
||||
const [avatar, setAvatar] = useState<File>();
|
||||
const [header, setHeader] = useState<File>();
|
||||
const [discoverable, setDiscoverable] = useState(
|
||||
|
||||
@@ -36,6 +36,7 @@ const EmbedModal: React.FC<{
|
||||
}
|
||||
|
||||
iframeDocument.open();
|
||||
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
||||
iframeDocument.write(data.html);
|
||||
iframeDocument.close();
|
||||
|
||||
|
||||
Reference in new issue
Block a user