diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-11-12 15:11:20 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-11-12 15:11:20 +0900 |
| commit | 6496835515f12c8221e6e852edba1e0ba4fdf663 (patch) | |
| tree | 908c09bc02d21f33a6d908886ff48a04373e07f2 /packages/backend/src/services/note | |
| parent | refactor (diff) | |
| download | sharkey-6496835515f12c8221e6e852edba1e0ba4fdf663.tar.gz sharkey-6496835515f12c8221e6e852edba1e0ba4fdf663.tar.bz2 sharkey-6496835515f12c8221e6e852edba1e0ba4fdf663.zip | |
viaMobileフラグ廃止
Close #7965
Diffstat (limited to 'packages/backend/src/services/note')
| -rw-r--r-- | packages/backend/src/services/note/create.ts | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/packages/backend/src/services/note/create.ts b/packages/backend/src/services/note/create.ts index 69d854ab1a..8f6c2fe3a5 100644 --- a/packages/backend/src/services/note/create.ts +++ b/packages/backend/src/services/note/create.ts @@ -98,7 +98,6 @@ type Option = { renote?: Note | null; files?: DriveFile[] | null; poll?: IPoll | null; - viaMobile?: boolean | null; localOnly?: boolean | null; cw?: string | null; visibility?: string; @@ -131,7 +130,6 @@ export default async (user: { id: User['id']; username: User['username']; host: if (data.createdAt == null) data.createdAt = new Date(); if (data.visibility == null) data.visibility = 'public'; - if (data.viaMobile == null) data.viaMobile = false; if (data.localOnly == null) data.localOnly = false; if (data.channel != null) data.visibility = 'public'; if (data.channel != null) data.visibleUsers = []; @@ -478,7 +476,6 @@ async function insertNote(user: { id: User['id']; host: User['host']; }, data: O tags: tags.map(tag => normalizeForSearch(tag)), emojis, userId: user.id, - viaMobile: data.viaMobile!, localOnly: data.localOnly!, visibility: data.visibility as any, visibleUserIds: data.visibility == 'specified' |