fix the defaults
This commit is contained in:
@@ -117,7 +117,6 @@ const props = withDefaults(defineProps<{
|
|||||||
compact: false,
|
compact: false,
|
||||||
showAsQuote: false,
|
showAsQuote: false,
|
||||||
showActions: true,
|
showActions: true,
|
||||||
skipNoteIds: [],
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const MOBILE_THRESHOLD = 500;
|
const MOBILE_THRESHOLD = 500;
|
||||||
@@ -159,7 +158,7 @@ watch(activityPub, async (uri) => {
|
|||||||
const response = await misskeyApi('ap/show', { uri });
|
const response = await misskeyApi('ap/show', { uri });
|
||||||
if (response.type !== 'Note') return;
|
if (response.type !== 'Note') return;
|
||||||
const theNoteId = response['object'].id;
|
const theNoteId = response['object'].id;
|
||||||
if (theNoteId && props.skipNoteIds.includes(theNoteId)) {
|
if (theNoteId && props.skipNoteIds && props.skipNoteIds.includes(theNoteId)) {
|
||||||
hidePreview.value = true;
|
hidePreview.value = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user