mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 15:34:13 +00:00 
			
		
		
		
	Revert "expose prop to force-collapse MkNote / SkNote"
This reverts commit c5117552ca.
			
			
This commit is contained in:
		
							parent
							
								
									93a4008d42
								
							
						
					
					
						commit
						fa176ab543
					
				
					 2 changed files with 4 additions and 12 deletions
				
			
		| 
						 | 
					@ -241,12 +241,8 @@ const props = withDefaults(defineProps<{
 | 
				
			||||||
	pinned?: boolean;
 | 
						pinned?: boolean;
 | 
				
			||||||
	mock?: boolean;
 | 
						mock?: boolean;
 | 
				
			||||||
	withHardMute?: boolean;
 | 
						withHardMute?: boolean;
 | 
				
			||||||
	collapseRenote?: boolean;
 | 
					 | 
				
			||||||
	collapseReplies?: boolean;
 | 
					 | 
				
			||||||
}>(), {
 | 
					}>(), {
 | 
				
			||||||
	mock: false,
 | 
						mock: false,
 | 
				
			||||||
	collapseRenote: undefined,
 | 
					 | 
				
			||||||
	collapseReplies: undefined,
 | 
					 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
provide('mock', props.mock);
 | 
					provide('mock', props.mock);
 | 
				
			||||||
| 
						 | 
					@ -318,12 +314,12 @@ const translating = ref(false);
 | 
				
			||||||
const showTicker = (defaultStore.state.instanceTicker === 'always') || (defaultStore.state.instanceTicker === 'remote' && appearNote.value.user.instance);
 | 
					const showTicker = (defaultStore.state.instanceTicker === 'always') || (defaultStore.state.instanceTicker === 'remote' && appearNote.value.user.instance);
 | 
				
			||||||
const canRenote = computed(() => ['public', 'home'].includes(appearNote.value.visibility) || (appearNote.value.visibility === 'followers' && appearNote.value.userId === $i?.id));
 | 
					const canRenote = computed(() => ['public', 'home'].includes(appearNote.value.visibility) || (appearNote.value.visibility === 'followers' && appearNote.value.userId === $i?.id));
 | 
				
			||||||
const renoteCollapsed = ref(
 | 
					const renoteCollapsed = ref(
 | 
				
			||||||
	(props.collapseRenote ?? defaultStore.state.collapseRenotes) && isRenote && (
 | 
						defaultStore.state.collapseRenotes && isRenote && (
 | 
				
			||||||
		($i && ($i.id === note.value.userId || $i.id === appearNote.value.userId)) || // `||` must be `||`! See https://github.com/misskey-dev/misskey/issues/13131
 | 
							($i && ($i.id === note.value.userId || $i.id === appearNote.value.userId)) || // `||` must be `||`! See https://github.com/misskey-dev/misskey/issues/13131
 | 
				
			||||||
		(appearNote.value.myReaction != null)
 | 
							(appearNote.value.myReaction != null)
 | 
				
			||||||
	),
 | 
						),
 | 
				
			||||||
);
 | 
					);
 | 
				
			||||||
const inReplyToCollapsed = ref(props.collapseReplies ?? defaultStore.state.collapseNotesRepliedTo);
 | 
					const inReplyToCollapsed = ref(defaultStore.state.collapseNotesRepliedTo);
 | 
				
			||||||
const defaultLike = computed(() => defaultStore.state.like ? defaultStore.state.like : null);
 | 
					const defaultLike = computed(() => defaultStore.state.like ? defaultStore.state.like : null);
 | 
				
			||||||
const animated = computed(() => parsed.value ? checkAnimationFromMfm(parsed.value) : null);
 | 
					const animated = computed(() => parsed.value ? checkAnimationFromMfm(parsed.value) : null);
 | 
				
			||||||
const allowAnim = ref(defaultStore.state.advancedMfm && defaultStore.state.animatedMfm ? true : false);
 | 
					const allowAnim = ref(defaultStore.state.advancedMfm && defaultStore.state.animatedMfm ? true : false);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -241,12 +241,8 @@ const props = withDefaults(defineProps<{
 | 
				
			||||||
	pinned?: boolean;
 | 
						pinned?: boolean;
 | 
				
			||||||
	mock?: boolean;
 | 
						mock?: boolean;
 | 
				
			||||||
	withHardMute?: boolean;
 | 
						withHardMute?: boolean;
 | 
				
			||||||
	collapseRenote?: boolean;
 | 
					 | 
				
			||||||
	collapseReplies?: boolean;
 | 
					 | 
				
			||||||
}>(), {
 | 
					}>(), {
 | 
				
			||||||
	mock: false,
 | 
						mock: false,
 | 
				
			||||||
	collapseRenote: undefined,
 | 
					 | 
				
			||||||
	collapseReplies: undefined,
 | 
					 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
provide('mock', props.mock);
 | 
					provide('mock', props.mock);
 | 
				
			||||||
| 
						 | 
					@ -318,12 +314,12 @@ const translating = ref(false);
 | 
				
			||||||
const showTicker = (defaultStore.state.instanceTicker === 'always') || (defaultStore.state.instanceTicker === 'remote' && appearNote.value.user.instance);
 | 
					const showTicker = (defaultStore.state.instanceTicker === 'always') || (defaultStore.state.instanceTicker === 'remote' && appearNote.value.user.instance);
 | 
				
			||||||
const canRenote = computed(() => ['public', 'home'].includes(appearNote.value.visibility) || (appearNote.value.visibility === 'followers' && appearNote.value.userId === $i?.id));
 | 
					const canRenote = computed(() => ['public', 'home'].includes(appearNote.value.visibility) || (appearNote.value.visibility === 'followers' && appearNote.value.userId === $i?.id));
 | 
				
			||||||
const renoteCollapsed = ref(
 | 
					const renoteCollapsed = ref(
 | 
				
			||||||
	(props.collapseRenote ?? defaultStore.state.collapseRenotes) && isRenote && (
 | 
						defaultStore.state.collapseRenotes && isRenote && (
 | 
				
			||||||
		($i && ($i.id === note.value.userId || $i.id === appearNote.value.userId)) || // `||` must be `||`! See https://github.com/misskey-dev/misskey/issues/13131
 | 
							($i && ($i.id === note.value.userId || $i.id === appearNote.value.userId)) || // `||` must be `||`! See https://github.com/misskey-dev/misskey/issues/13131
 | 
				
			||||||
		(appearNote.value.myReaction != null)
 | 
							(appearNote.value.myReaction != null)
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
);
 | 
					);
 | 
				
			||||||
const inReplyToCollapsed = ref(props.collapseReplies ?? defaultStore.state.collapseNotesRepliedTo);
 | 
					const inReplyToCollapsed = ref(defaultStore.state.collapseNotesRepliedTo);
 | 
				
			||||||
const defaultLike = computed(() => defaultStore.state.like ? defaultStore.state.like : null);
 | 
					const defaultLike = computed(() => defaultStore.state.like ? defaultStore.state.like : null);
 | 
				
			||||||
const animated = computed(() => parsed.value ? checkAnimationFromMfm(parsed.value) : null);
 | 
					const animated = computed(() => parsed.value ? checkAnimationFromMfm(parsed.value) : null);
 | 
				
			||||||
const allowAnim = ref(defaultStore.state.advancedMfm && defaultStore.state.animatedMfm ? true : false);
 | 
					const allowAnim = ref(defaultStore.state.advancedMfm && defaultStore.state.animatedMfm ? true : false);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue