parent
3e31d1fae9
commit
476dfb0f35
|
@ -30,6 +30,7 @@ You should also include the user name that made the change.
|
||||||
- Client: リアクションピッカーの高さが低くなったまま戻らないことがあるのを修正 @syuilo
|
- Client: リアクションピッカーの高さが低くなったまま戻らないことがあるのを修正 @syuilo
|
||||||
- Client: ユーザー名オートコンプリートが正しく動作しない問題を修正 @syuilo
|
- Client: ユーザー名オートコンプリートが正しく動作しない問題を修正 @syuilo
|
||||||
- Client: タッチ操作だとウィジェットの編集がしにくいのを修正 @xianonn
|
- Client: タッチ操作だとウィジェットの編集がしにくいのを修正 @xianonn
|
||||||
|
- Client: register_note_view_interruptor()が動かないのを修正 @syuilo
|
||||||
|
|
||||||
## 12.107.0 (2022/02/12)
|
## 12.107.0 (2022/02/12)
|
||||||
|
|
||||||
|
|
|
@ -138,7 +138,18 @@ const props = defineProps<{
|
||||||
|
|
||||||
const inChannel = inject('inChannel', null);
|
const inChannel = inject('inChannel', null);
|
||||||
|
|
||||||
const note = $ref(JSON.parse(JSON.stringify(props.note)));
|
let note = $ref(JSON.parse(JSON.stringify(props.note)));
|
||||||
|
|
||||||
|
// plugin
|
||||||
|
if (noteViewInterruptors.length > 0) {
|
||||||
|
onMounted(async () => {
|
||||||
|
let result = JSON.parse(JSON.stringify(note));
|
||||||
|
for (const interruptor of noteViewInterruptors) {
|
||||||
|
result = await interruptor.handler(result);
|
||||||
|
}
|
||||||
|
note = result;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const isRenote = (
|
const isRenote = (
|
||||||
note.renote != null &&
|
note.renote != null &&
|
||||||
|
@ -152,7 +163,7 @@ const menuButton = ref<HTMLElement>();
|
||||||
const renoteButton = ref<InstanceType<typeof XRenoteButton>>();
|
const renoteButton = ref<InstanceType<typeof XRenoteButton>>();
|
||||||
const renoteTime = ref<HTMLElement>();
|
const renoteTime = ref<HTMLElement>();
|
||||||
const reactButton = ref<HTMLElement>();
|
const reactButton = ref<HTMLElement>();
|
||||||
let appearNote = $ref(isRenote ? note.renote as misskey.entities.Note : note);
|
let appearNote = $computed(() => isRenote ? note.renote as misskey.entities.Note : note);
|
||||||
const isMyRenote = $i && ($i.id === note.userId);
|
const isMyRenote = $i && ($i.id === note.userId);
|
||||||
const showContent = ref(false);
|
const showContent = ref(false);
|
||||||
const collapsed = ref(appearNote.cw == null && appearNote.text != null && (
|
const collapsed = ref(appearNote.cw == null && appearNote.text != null && (
|
||||||
|
|
Loading…
Reference in a new issue