diff --git a/.yarn/corepack.tgz b/.yarn/corepack.tgz index c614eba3b..95af74bc2 100644 Binary files a/.yarn/corepack.tgz and b/.yarn/corepack.tgz differ diff --git a/packages/backend/src/remote/activitypub/models/note.ts b/packages/backend/src/remote/activitypub/models/note.ts index 65737819b..e03a97df5 100644 --- a/packages/backend/src/remote/activitypub/models/note.ts +++ b/packages/backend/src/remote/activitypub/models/note.ts @@ -623,8 +623,8 @@ export async function updateNote(value: string | IObject, resolver?: Resolver) { text = await htmlToMfm(post.content, post.tag); } - const cw = post.sensitive && post.summary; - + const cw = post.summary === "" ? null : post.summary; + // File parsing const fileList = post.attachment ? Array.isArray(post.attachment) diff --git a/packages/client/src/pages/antenna-timeline.vue b/packages/client/src/pages/antenna-timeline.vue index 3306f8c76..821c02ef3 100644 --- a/packages/client/src/pages/antenna-timeline.vue +++ b/packages/client/src/pages/antenna-timeline.vue @@ -90,11 +90,11 @@ watch( const headerActions = $computed(() => antenna ? [ - // { - // icon: "ph-calendar-blank ph-bold ph-lg", - // text: i18n.ts.jumpToSpecifiedDate, - // handler: timetravel, - // }, + { + icon: "ph-clock-counter-clockwise ph-bold ph-lg", + text: i18n.ts.jumpToSpecifiedDate, + handler: timetravel, + }, { icon: "ph-gear-six ph-bold ph-lg", text: i18n.ts.settings, diff --git a/packages/client/src/pages/timeline.vue b/packages/client/src/pages/timeline.vue index 45dd257ad..8c0de0471 100644 --- a/packages/client/src/pages/timeline.vue +++ b/packages/client/src/pages/timeline.vue @@ -214,14 +214,14 @@ const headerActions = $computed(() => [ text: i18n.ts.antennas, iconOnly: true, handler: chooseAntenna, - }/* **TODO: fix timetravel**, + }, { icon: 'ph-clock-counter-clockwise ph-bold ph-lg', title: i18n.ts.jumpToSpecifiedDate, text: i18n.ts.jumpToSpecifiedDate, iconOnly: true, handler: timetravel, - }*/ + } ]); const headerTabs = $computed(() => [ diff --git a/packages/client/src/pages/user-list-timeline.vue b/packages/client/src/pages/user-list-timeline.vue index b6e1127eb..1c376c5e2 100644 --- a/packages/client/src/pages/user-list-timeline.vue +++ b/packages/client/src/pages/user-list-timeline.vue @@ -63,7 +63,7 @@ const headerActions = $computed(() => list ? [ { - icon: "ph-calendar-blank ph-bold ph-lg", + icon: "ph-clock-counter-clockwise ph-bold ph-lg", text: i18n.ts.jumpToSpecifiedDate, handler: timetravel, },