Skip to content

Commit 31e2527

Browse files
committed
Merge branch 'master' into develop
2 parents c7b15eb + 8aa2707 commit 31e2527

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

β€Žpackage.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "misskey",
3-
"version": "2024.11.0-enma",
3+
"version": "2024.11.0-enma-5",
44
"codename": "nasubi",
55
"repository": {
66
"type": "git",

β€Žpackages/frontend/src/components/MkNote.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ const isMyRenote = $i && ($i.id === note.value.userId);
303303
const showContent = ref(false);
304304
const parsed = computed(() => appearNote.value.text ? mfm.parse(appearNote.value.text) : null);
305305
const urls = computed(() => parsed.value ? extractUrlFromMfm(parsed.value).filter((url) => appearNote.value.renote?.url !== url.href && appearNote.value.renote?.uri !== url.href) : null);
306-
const previewUrls = computed(() => urls.value.filter(url => url.preview));
306+
const previewUrls = computed(() => (urls.value ?? []).filter(url => url.preview));
307307
const isLong = shouldCollapsed(appearNote.value, urls.value ?? []);
308308
const collapsed = ref(appearNote.value.cw == null && isLong);
309309
const isDeleted = ref(false);
@@ -339,7 +339,7 @@ function getDomain(url) {
339339
}
340340

341341
const isSuspectPhishingLink = computed(() => {
342-
return urls.value.some(url => {
342+
return (urls.value ?? []).some(url => {
343343
// url.textγŒι…εˆ—γ§γͺγ„ε ΄εˆγ€ι…εˆ—γ«ε€‰ζ›
344344
const text = Array.isArray(url.text) ? url.text.join('') : url.text;
345345

0 commit comments

Comments
Β (0)