From 1441fd93b97a2baa1d7a225fb7d1a99c85d96af5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 18 Feb 2020 08:05:27 +0900 Subject: [PATCH] Clean up --- src/server/api/endpoints/blocking/create.ts | 2 -- src/server/api/endpoints/blocking/delete.ts | 2 -- src/server/api/endpoints/charts/active-users.ts | 2 -- src/server/api/endpoints/charts/drive.ts | 2 -- src/server/api/endpoints/charts/federation.ts | 2 -- src/server/api/endpoints/charts/hashtag.ts | 2 -- src/server/api/endpoints/charts/instance.ts | 2 -- src/server/api/endpoints/charts/network.ts | 2 -- src/server/api/endpoints/charts/notes.ts | 2 -- src/server/api/endpoints/charts/user/drive.ts | 2 -- src/server/api/endpoints/charts/user/following.ts | 2 -- src/server/api/endpoints/charts/user/notes.ts | 2 -- src/server/api/endpoints/charts/user/reactions.ts | 2 -- src/server/api/endpoints/charts/users.ts | 2 -- src/server/api/endpoints/drive/files/attached-notes.ts | 2 -- src/server/api/endpoints/drive/files/delete.ts | 2 -- src/server/api/endpoints/drive/files/show.ts | 2 -- src/server/api/endpoints/drive/folders/create.ts | 2 -- src/server/api/endpoints/drive/folders/delete.ts | 2 -- src/server/api/endpoints/drive/folders/show.ts | 2 -- src/server/api/endpoints/drive/folders/update.ts | 2 -- src/server/api/endpoints/following/create.ts | 2 -- src/server/api/endpoints/following/delete.ts | 2 -- src/server/api/endpoints/i.ts | 2 -- src/server/api/endpoints/i/pin.ts | 2 -- src/server/api/endpoints/i/unpin.ts | 2 -- src/server/api/endpoints/messaging/messages/delete.ts | 2 -- src/server/api/endpoints/meta.ts | 2 -- src/server/api/endpoints/notes/create.ts | 2 -- src/server/api/endpoints/notes/delete.ts | 2 -- src/server/api/endpoints/notes/favorites/create.ts | 2 -- src/server/api/endpoints/notes/favorites/delete.ts | 2 -- src/server/api/endpoints/notes/reactions/create.ts | 2 -- src/server/api/endpoints/notes/show.ts | 2 -- src/server/api/endpoints/notes/state.ts | 2 -- src/server/api/endpoints/notes/watching/create.ts | 2 -- src/server/api/endpoints/notes/watching/delete.ts | 2 -- 37 files changed, 74 deletions(-) diff --git a/src/server/api/endpoints/blocking/create.ts b/src/server/api/endpoints/blocking/create.ts index 88ff487cad..8d1cc9f3bf 100644 --- a/src/server/api/endpoints/blocking/create.ts +++ b/src/server/api/endpoints/blocking/create.ts @@ -8,8 +8,6 @@ import { getUser } from '../../common/getters'; import { Blockings, NoteWatchings, Users } from '../../../../models'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': '指定したユーザーをブロックします。', 'en-US': 'Block a user.' diff --git a/src/server/api/endpoints/blocking/delete.ts b/src/server/api/endpoints/blocking/delete.ts index b0f7d7bd74..007f40bc58 100644 --- a/src/server/api/endpoints/blocking/delete.ts +++ b/src/server/api/endpoints/blocking/delete.ts @@ -8,8 +8,6 @@ import { getUser } from '../../common/getters'; import { Blockings, Users } from '../../../../models'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': '指定したユーザーのブロックを解除します。', 'en-US': 'Unblock a user.' diff --git a/src/server/api/endpoints/charts/active-users.ts b/src/server/api/endpoints/charts/active-users.ts index f0349b17f3..59bb1db109 100644 --- a/src/server/api/endpoints/charts/active-users.ts +++ b/src/server/api/endpoints/charts/active-users.ts @@ -4,8 +4,6 @@ import { convertLog } from '../../../../services/chart/core'; import { activeUsersChart } from '../../../../services/chart'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': 'アクティブユーザーのチャートを取得します。' }, diff --git a/src/server/api/endpoints/charts/drive.ts b/src/server/api/endpoints/charts/drive.ts index ae6d894407..5c26fe719a 100644 --- a/src/server/api/endpoints/charts/drive.ts +++ b/src/server/api/endpoints/charts/drive.ts @@ -4,8 +4,6 @@ import { convertLog } from '../../../../services/chart/core'; import { driveChart } from '../../../../services/chart'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': 'ドライブのチャートを取得します。' }, diff --git a/src/server/api/endpoints/charts/federation.ts b/src/server/api/endpoints/charts/federation.ts index 34e9bfee5f..ebd60cc24b 100644 --- a/src/server/api/endpoints/charts/federation.ts +++ b/src/server/api/endpoints/charts/federation.ts @@ -4,8 +4,6 @@ import { convertLog } from '../../../../services/chart/core'; import { federationChart } from '../../../../services/chart'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': 'フェデレーションのチャートを取得します。' }, diff --git a/src/server/api/endpoints/charts/hashtag.ts b/src/server/api/endpoints/charts/hashtag.ts index eceb0b275c..8d14430137 100644 --- a/src/server/api/endpoints/charts/hashtag.ts +++ b/src/server/api/endpoints/charts/hashtag.ts @@ -4,8 +4,6 @@ import { convertLog } from '../../../../services/chart/core'; import { hashtagChart } from '../../../../services/chart'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': 'ハッシュタグごとのチャートを取得します。' }, diff --git a/src/server/api/endpoints/charts/instance.ts b/src/server/api/endpoints/charts/instance.ts index e99c17ae65..4c26b7614c 100644 --- a/src/server/api/endpoints/charts/instance.ts +++ b/src/server/api/endpoints/charts/instance.ts @@ -4,8 +4,6 @@ import { convertLog } from '../../../../services/chart/core'; import { instanceChart } from '../../../../services/chart'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': 'インスタンスごとのチャートを取得します。' }, diff --git a/src/server/api/endpoints/charts/network.ts b/src/server/api/endpoints/charts/network.ts index 648588fbe5..162c0c9ecd 100644 --- a/src/server/api/endpoints/charts/network.ts +++ b/src/server/api/endpoints/charts/network.ts @@ -4,8 +4,6 @@ import { convertLog } from '../../../../services/chart/core'; import { networkChart } from '../../../../services/chart'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': 'ネットワークのチャートを取得します。' }, diff --git a/src/server/api/endpoints/charts/notes.ts b/src/server/api/endpoints/charts/notes.ts index 074c4978cd..c25f46f543 100644 --- a/src/server/api/endpoints/charts/notes.ts +++ b/src/server/api/endpoints/charts/notes.ts @@ -4,8 +4,6 @@ import { convertLog } from '../../../../services/chart/core'; import { notesChart } from '../../../../services/chart'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': '投稿のチャートを取得します。' }, diff --git a/src/server/api/endpoints/charts/user/drive.ts b/src/server/api/endpoints/charts/user/drive.ts index 918fb62c6a..6bfa427403 100644 --- a/src/server/api/endpoints/charts/user/drive.ts +++ b/src/server/api/endpoints/charts/user/drive.ts @@ -5,8 +5,6 @@ import { convertLog } from '../../../../../services/chart/core'; import { perUserDriveChart } from '../../../../../services/chart'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': 'ユーザーごとのドライブのチャートを取得します。' }, diff --git a/src/server/api/endpoints/charts/user/following.ts b/src/server/api/endpoints/charts/user/following.ts index 5d86e85d31..0da995e2ec 100644 --- a/src/server/api/endpoints/charts/user/following.ts +++ b/src/server/api/endpoints/charts/user/following.ts @@ -5,8 +5,6 @@ import { convertLog } from '../../../../../services/chart/core'; import { perUserFollowingChart } from '../../../../../services/chart'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': 'ユーザーごとのフォロー/フォロワーのチャートを取得します。' }, diff --git a/src/server/api/endpoints/charts/user/notes.ts b/src/server/api/endpoints/charts/user/notes.ts index d39a20df16..754ade1228 100644 --- a/src/server/api/endpoints/charts/user/notes.ts +++ b/src/server/api/endpoints/charts/user/notes.ts @@ -5,8 +5,6 @@ import { convertLog } from '../../../../../services/chart/core'; import { perUserNotesChart } from '../../../../../services/chart'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': 'ユーザーごとの投稿のチャートを取得します。' }, diff --git a/src/server/api/endpoints/charts/user/reactions.ts b/src/server/api/endpoints/charts/user/reactions.ts index 5b88a1d715..f3344c6648 100644 --- a/src/server/api/endpoints/charts/user/reactions.ts +++ b/src/server/api/endpoints/charts/user/reactions.ts @@ -5,8 +5,6 @@ import { convertLog } from '../../../../../services/chart/core'; import { perUserReactionsChart } from '../../../../../services/chart'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': 'ユーザーごとの被リアクション数のチャートを取得します。' }, diff --git a/src/server/api/endpoints/charts/users.ts b/src/server/api/endpoints/charts/users.ts index 17de5756da..0d7fb7b951 100644 --- a/src/server/api/endpoints/charts/users.ts +++ b/src/server/api/endpoints/charts/users.ts @@ -4,8 +4,6 @@ import { convertLog } from '../../../../services/chart/core'; import { usersChart } from '../../../../services/chart'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': 'ユーザーのチャートを取得します。' }, diff --git a/src/server/api/endpoints/drive/files/attached-notes.ts b/src/server/api/endpoints/drive/files/attached-notes.ts index e1bef8e8d9..e1fc27f599 100644 --- a/src/server/api/endpoints/drive/files/attached-notes.ts +++ b/src/server/api/endpoints/drive/files/attached-notes.ts @@ -5,8 +5,6 @@ import { ApiError } from '../../../error'; import { DriveFiles, Notes } from '../../../../../models'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': '指定したドライブのファイルが添付されている投稿一覧を取得します。', 'en-US': 'Get the notes that specified file of drive attached.' diff --git a/src/server/api/endpoints/drive/files/delete.ts b/src/server/api/endpoints/drive/files/delete.ts index e10ffb891c..77d112ec94 100644 --- a/src/server/api/endpoints/drive/files/delete.ts +++ b/src/server/api/endpoints/drive/files/delete.ts @@ -7,8 +7,6 @@ import { ApiError } from '../../../error'; import { DriveFiles } from '../../../../../models'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': 'ドライブのファイルを削除します。', 'en-US': 'Delete a file of drive.' diff --git a/src/server/api/endpoints/drive/files/show.ts b/src/server/api/endpoints/drive/files/show.ts index 3384c4523a..693439974e 100644 --- a/src/server/api/endpoints/drive/files/show.ts +++ b/src/server/api/endpoints/drive/files/show.ts @@ -6,8 +6,6 @@ import { DriveFile } from '../../../../../models/entities/drive-file'; import { DriveFiles } from '../../../../../models'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': '指定したドライブのファイルの情報を取得します。', 'en-US': 'Get specified file of drive.' diff --git a/src/server/api/endpoints/drive/folders/create.ts b/src/server/api/endpoints/drive/folders/create.ts index f6604a3cb2..d88bfcc3d4 100644 --- a/src/server/api/endpoints/drive/folders/create.ts +++ b/src/server/api/endpoints/drive/folders/create.ts @@ -7,8 +7,6 @@ import { DriveFolders } from '../../../../../models'; import { genId } from '../../../../../misc/gen-id'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': 'ドライブのフォルダを作成します。', 'en-US': 'Create a folder of drive.' diff --git a/src/server/api/endpoints/drive/folders/delete.ts b/src/server/api/endpoints/drive/folders/delete.ts index 2faae93f93..439ef06a50 100644 --- a/src/server/api/endpoints/drive/folders/delete.ts +++ b/src/server/api/endpoints/drive/folders/delete.ts @@ -6,8 +6,6 @@ import { ApiError } from '../../../error'; import { DriveFolders, DriveFiles } from '../../../../../models'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': '指定したドライブのフォルダを削除します。', 'en-US': 'Delete specified folder of drive.' diff --git a/src/server/api/endpoints/drive/folders/show.ts b/src/server/api/endpoints/drive/folders/show.ts index 9026c8dff9..b600b5e39f 100644 --- a/src/server/api/endpoints/drive/folders/show.ts +++ b/src/server/api/endpoints/drive/folders/show.ts @@ -5,8 +5,6 @@ import { ApiError } from '../../../error'; import { DriveFolders } from '../../../../../models'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': '指定したドライブのフォルダの情報を取得します。', 'en-US': 'Get specified folder of drive.' diff --git a/src/server/api/endpoints/drive/folders/update.ts b/src/server/api/endpoints/drive/folders/update.ts index 6c20b4c518..e23a824d16 100644 --- a/src/server/api/endpoints/drive/folders/update.ts +++ b/src/server/api/endpoints/drive/folders/update.ts @@ -6,8 +6,6 @@ import { ApiError } from '../../../error'; import { DriveFolders } from '../../../../../models'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': '指定したドライブのフォルダの情報を更新します。', 'en-US': 'Update specified folder of drive.' diff --git a/src/server/api/endpoints/following/create.ts b/src/server/api/endpoints/following/create.ts index 9db4518282..d5ade3073a 100644 --- a/src/server/api/endpoints/following/create.ts +++ b/src/server/api/endpoints/following/create.ts @@ -8,8 +8,6 @@ import { getUser } from '../../common/getters'; import { Followings, Users } from '../../../../models'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': '指定したユーザーをフォローします。', 'en-US': 'Follow a user.' diff --git a/src/server/api/endpoints/following/delete.ts b/src/server/api/endpoints/following/delete.ts index 02957077cb..692ac92144 100644 --- a/src/server/api/endpoints/following/delete.ts +++ b/src/server/api/endpoints/following/delete.ts @@ -8,8 +8,6 @@ import { getUser } from '../../common/getters'; import { Followings, Users } from '../../../../models'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': '指定したユーザーのフォローを解除します。', 'en-US': 'Unfollow a user.' diff --git a/src/server/api/endpoints/i.ts b/src/server/api/endpoints/i.ts index 7983e77f00..d22de40c69 100644 --- a/src/server/api/endpoints/i.ts +++ b/src/server/api/endpoints/i.ts @@ -2,8 +2,6 @@ import define from '../define'; import { Users } from '../../../models'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': '自分のアカウント情報を取得します。' }, diff --git a/src/server/api/endpoints/i/pin.ts b/src/server/api/endpoints/i/pin.ts index 612eaebdb1..59b2f23e3d 100644 --- a/src/server/api/endpoints/i/pin.ts +++ b/src/server/api/endpoints/i/pin.ts @@ -6,8 +6,6 @@ import { ApiError } from '../../error'; import { Users } from '../../../../models'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': '指定した投稿をピン留めします。' }, diff --git a/src/server/api/endpoints/i/unpin.ts b/src/server/api/endpoints/i/unpin.ts index 4d883c4fdc..e1ea3a6295 100644 --- a/src/server/api/endpoints/i/unpin.ts +++ b/src/server/api/endpoints/i/unpin.ts @@ -6,8 +6,6 @@ import { ApiError } from '../../error'; import { Users } from '../../../../models'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': '指定した投稿のピン留めを解除します。' }, diff --git a/src/server/api/endpoints/messaging/messages/delete.ts b/src/server/api/endpoints/messaging/messages/delete.ts index bef55bbc31..9f751a062e 100644 --- a/src/server/api/endpoints/messaging/messages/delete.ts +++ b/src/server/api/endpoints/messaging/messages/delete.ts @@ -7,8 +7,6 @@ import { ApiError } from '../../../error'; import { MessagingMessages } from '../../../../../models'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': '指定したトークメッセージを削除します。', 'en-US': 'Delete a message.' diff --git a/src/server/api/endpoints/meta.ts b/src/server/api/endpoints/meta.ts index 2bf7b7ed03..8eaa65a2c6 100644 --- a/src/server/api/endpoints/meta.ts +++ b/src/server/api/endpoints/meta.ts @@ -6,8 +6,6 @@ import { Emojis, Users } from '../../../models'; import { DB_MAX_NOTE_TEXT_LENGTH } from '../../../misc/hard-limits'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': 'インスタンス情報を取得します。', 'en-US': 'Get the information of this instance.' diff --git a/src/server/api/endpoints/notes/create.ts b/src/server/api/endpoints/notes/create.ts index f4bdd5fb55..e983ad6fd6 100644 --- a/src/server/api/endpoints/notes/create.ts +++ b/src/server/api/endpoints/notes/create.ts @@ -21,8 +21,6 @@ setInterval(() => { }, 3000); export const meta = { - stability: 'stable', - desc: { 'ja-JP': '投稿します。' }, diff --git a/src/server/api/endpoints/notes/delete.ts b/src/server/api/endpoints/notes/delete.ts index f185ab2e22..65565ee3ab 100644 --- a/src/server/api/endpoints/notes/delete.ts +++ b/src/server/api/endpoints/notes/delete.ts @@ -9,8 +9,6 @@ import { Users } from '../../../../models'; import { ensure } from '../../../../prelude/ensure'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': '指定した投稿を削除します。', 'en-US': 'Delete a note.' diff --git a/src/server/api/endpoints/notes/favorites/create.ts b/src/server/api/endpoints/notes/favorites/create.ts index 0ca01c42d2..952bbfd0eb 100644 --- a/src/server/api/endpoints/notes/favorites/create.ts +++ b/src/server/api/endpoints/notes/favorites/create.ts @@ -7,8 +7,6 @@ import { NoteFavorites } from '../../../../../models'; import { genId } from '../../../../../misc/gen-id'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': '指定した投稿をお気に入りに登録します。', 'en-US': 'Favorite a note.' diff --git a/src/server/api/endpoints/notes/favorites/delete.ts b/src/server/api/endpoints/notes/favorites/delete.ts index 7035b91d5f..1b36b7d68c 100644 --- a/src/server/api/endpoints/notes/favorites/delete.ts +++ b/src/server/api/endpoints/notes/favorites/delete.ts @@ -6,8 +6,6 @@ import { getNote } from '../../../common/getters'; import { NoteFavorites } from '../../../../../models'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': '指定した投稿のお気に入りを解除します。', 'en-US': 'Unfavorite a note.' diff --git a/src/server/api/endpoints/notes/reactions/create.ts b/src/server/api/endpoints/notes/reactions/create.ts index eab1dfde7c..6abc7e3059 100644 --- a/src/server/api/endpoints/notes/reactions/create.ts +++ b/src/server/api/endpoints/notes/reactions/create.ts @@ -6,8 +6,6 @@ import { getNote } from '../../../common/getters'; import { ApiError } from '../../../error'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': '指定した投稿にリアクションします。', 'en-US': 'React to a note.' diff --git a/src/server/api/endpoints/notes/show.ts b/src/server/api/endpoints/notes/show.ts index 2ce2a2b35e..984b5c726a 100644 --- a/src/server/api/endpoints/notes/show.ts +++ b/src/server/api/endpoints/notes/show.ts @@ -6,8 +6,6 @@ import { ApiError } from '../../error'; import { Notes } from '../../../../models'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': '指定した投稿を取得します。', 'en-US': 'Get a note.' diff --git a/src/server/api/endpoints/notes/state.ts b/src/server/api/endpoints/notes/state.ts index 73adb8026b..2ec4a93d5b 100644 --- a/src/server/api/endpoints/notes/state.ts +++ b/src/server/api/endpoints/notes/state.ts @@ -4,8 +4,6 @@ import define from '../../define'; import { NoteFavorites, NoteWatchings } from '../../../../models'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': '指定した投稿の状態を取得します。', 'en-US': 'Get state of a note.' diff --git a/src/server/api/endpoints/notes/watching/create.ts b/src/server/api/endpoints/notes/watching/create.ts index b6baf3464a..b2a758fc74 100644 --- a/src/server/api/endpoints/notes/watching/create.ts +++ b/src/server/api/endpoints/notes/watching/create.ts @@ -6,8 +6,6 @@ import { getNote } from '../../../common/getters'; import { ApiError } from '../../../error'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': '指定した投稿をウォッチします。', 'en-US': 'Watch a note.' diff --git a/src/server/api/endpoints/notes/watching/delete.ts b/src/server/api/endpoints/notes/watching/delete.ts index 70db66b6d2..75b4f2355f 100644 --- a/src/server/api/endpoints/notes/watching/delete.ts +++ b/src/server/api/endpoints/notes/watching/delete.ts @@ -6,8 +6,6 @@ import { getNote } from '../../../common/getters'; import { ApiError } from '../../../error'; export const meta = { - stability: 'stable', - desc: { 'ja-JP': '指定した投稿のウォッチを解除します。', 'en-US': 'Unwatch a note.'