fix: featured note is currently disabled

This commit is contained in:
naskya 2023-10-02 00:29:57 +09:00
parent bdbecce61a
commit 3c931989c5
No known key found for this signature in database
GPG Key ID: 164DFF24E2D40139

View File

@ -80,13 +80,13 @@
{{ i18n.ts.reflectMayTakeTime }}</template {{ i18n.ts.reflectMayTakeTime }}</template
></FormSwitch ></FormSwitch
> >
<FormSwitch <!-- <FormSwitch
v-model="$i.injectFeaturedNote" v-model="$i.injectFeaturedNote"
class="_formBlock" class="_formBlock"
@update:modelValue="onChangeInjectFeaturedNote" @update:modelValue="onChangeInjectFeaturedNote"
> >
{{ i18n.ts.showFeaturedNotesInTimeline }} {{ i18n.ts.showFeaturedNotesInTimeline }}
</FormSwitch> </FormSwitch> -->
<!-- <FormSwitch v-model="reportError" class="_formBlock" <!-- <FormSwitch v-model="reportError" class="_formBlock"
>{{ i18n.ts.sendErrorReports >{{ i18n.ts.sendErrorReports
}}<template #caption>{{ }}<template #caption>{{
@ -404,13 +404,14 @@ const openServerInfo = computed(
defaultStore.makeGetterSetter("openServerInfo"), defaultStore.makeGetterSetter("openServerInfo"),
); );
function onChangeInjectFeaturedNote(v) { // This feature (along with injectPromo) is currently disabled
os.api("i/update", { // function onChangeInjectFeaturedNote(v) {
injectFeaturedNote: v, // os.api("i/update", {
}).then((i) => { // injectFeaturedNote: v,
$i!.injectFeaturedNote = i.injectFeaturedNote; // }).then((i) => {
}); // $i!.injectFeaturedNote = i.injectFeaturedNote;
} // });
// }
watch(swipeOnDesktop, () => { watch(swipeOnDesktop, () => {
defaultStore.set("swipeOnMobile", true); defaultStore.set("swipeOnMobile", true);