diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-08-26 17:31:36 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-08-26 17:31:36 +0900 |
| commit | 69bbac013a5875b1ffb686e63c8896b86eacdebf (patch) | |
| tree | b2e4ec2c6c2fab7649e5333753ff6add8ca93377 /packages/frontend/src/utility | |
| parent | chore(frontend): tweak MkServerSetupWizard (diff) | |
| download | misskey-69bbac013a5875b1ffb686e63c8896b86eacdebf.tar.gz misskey-69bbac013a5875b1ffb686e63c8896b86eacdebf.tar.bz2 misskey-69bbac013a5875b1ffb686e63c8896b86eacdebf.zip | |
refactor
Diffstat (limited to 'packages/frontend/src/utility')
| -rw-r--r-- | packages/frontend/src/utility/drive.ts | 2 | ||||
| -rw-r--r-- | packages/frontend/src/utility/extract-url-from-mfm.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/src/utility/drive.ts b/packages/frontend/src/utility/drive.ts index f2f491b3fd..5ff066f61b 100644 --- a/packages/frontend/src/utility/drive.ts +++ b/packages/frontend/src/utility/drive.ts @@ -233,7 +233,7 @@ function select(anchorElement: HTMLElement | EventTarget | null, label: string | os.popupMenu([label ? { text: label, type: 'label', - } : undefined, { + } : null, { text: i18n.ts.upload, icon: 'ti ti-upload', action: () => chooseFileFromPcAndUpload({ multiple, features }).then(files => res(files)), diff --git a/packages/frontend/src/utility/extract-url-from-mfm.ts b/packages/frontend/src/utility/extract-url-from-mfm.ts index 570823d5b5..48243dff36 100644 --- a/packages/frontend/src/utility/extract-url-from-mfm.ts +++ b/packages/frontend/src/utility/extract-url-from-mfm.ts @@ -13,7 +13,7 @@ const removeHash = (x: string) => x.replace(/#[^#]*$/, ''); export function extractUrlFromMfm(nodes: mfm.MfmNode[], respectSilentFlag = true): string[] { const urlNodes = mfm.extract(nodes, (node) => { return (node.type === 'url') || (node.type === 'link' && (!respectSilentFlag || !node.props.silent)); - }); + }) as mfm.MfmUrl[]; const urls: string[] = unique(urlNodes.map(x => x.props.url)); return urls.reduce((array, url) => { |