diff --git a/README.md b/README.md index 952a148fc1a4..0f97c5870565 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ - フォローしているユーザーなら鍵ノートでもアンテナにひっかかるように https://github.com/team-shahu/misskey/pull/38 - nyaizeを無効化できるように https://github.com/team-shahu/misskey/pull/39 - 新着ノート通知があった時まとめるように https://github.com/team-shahu/misskey/pull/40 +- いいねボタンの実装 https://github.com/team-shahu/misskey/pull/41 ## Special Thanks - [Misskey](https://github.com/misskey-dev/misskey) diff --git a/locales/en-US.yml b/locales/en-US.yml index 59bf15ef9fcd..96eee493f279 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -1313,6 +1313,7 @@ _delivery: manuallySuspended: "Manually suspended" goneSuspended: "Server is suspended due to server deletion" autoSuspendedForNotResponding: "Server is suspended due to no responding" +selectReaction: "Select reactions to use with the Like button" scheduledNoteDelete: "Scheduled note deletion" noteDeletationAt: "This note will be deleted at {time}." addToEmojiPicker: "Add to Emoji Picker" diff --git a/locales/index.d.ts b/locales/index.d.ts index a405f51d3147..73a78570a9cd 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -5373,6 +5373,10 @@ export interface Locale extends ILocale { "autoSuspendedForNotResponding": string; }; }; + /** + * いいねボタンで使うリアクションを選択 + */ + "selectReaction": string; "_bubbleGame": { /** * 遊び方 diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index d4793e024985..23e31fe0d091 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1343,6 +1343,8 @@ _delivery: goneSuspended: "サーバー削除のため停止中" autoSuspendedForNotResponding: "サーバー応答なしのため停止中" +selectReaction: "いいねボタンで使うリアクションを選択" + _bubbleGame: howToPlay: "遊び方" hold: "ホールド" diff --git a/packages/backend/src/models/Meta.ts b/packages/backend/src/models/Meta.ts index 6654f2c2e4e6..583a259069d3 100644 --- a/packages/backend/src/models/Meta.ts +++ b/packages/backend/src/models/Meta.ts @@ -574,7 +574,6 @@ export class MiMeta { }) public emailWhitelist: boolean; - @Column('varchar', { length: 1024, array: true, default: '{ "admin", "administrator", "root", "system", "maintainer", "host", "mod", "moderator", "owner", "superuser", "staff", "auth", "i", "me", "everyone", "all", "mention", "mentions", "example", "user", "users", "account", "accounts", "official", "help", "helps", "support", "supports", "info", "information", "informations", "announce", "announces", "announcement", "announcements", "notice", "notification", "notifications", "dev", "developer", "developers", "tech", "misskey" }', }) diff --git a/packages/backend/src/server/api/endpoints/admin/update-meta.ts b/packages/backend/src/server/api/endpoints/admin/update-meta.ts index e06efbaa0c1e..e3cb2c2b09fe 100644 --- a/packages/backend/src/server/api/endpoints/admin/update-meta.ts +++ b/packages/backend/src/server/api/endpoints/admin/update-meta.ts @@ -141,7 +141,7 @@ export const paramDef = { enableIdenticonGeneration: { type: 'boolean' }, serverRules: { type: 'array', items: { type: 'string' } }, bannedEmailDomains: { type: 'array', items: { type: 'string' } }, - emailWhitelist: { type: 'boolean'}, + emailWhitelist: { type: 'boolean' }, preservedUsernames: { type: 'array', items: { type: 'string' } }, manifestJsonOverride: { type: 'string' }, enableFanoutTimeline: { type: 'boolean' }, @@ -449,6 +449,7 @@ export default class extends Endpoint { // eslint- } if (ps.repositoryUrl !== undefined) { + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion set.repositoryUrl = URL.canParse(ps.repositoryUrl!) ? ps.repositoryUrl : null; } diff --git a/packages/backend/src/server/api/endpoints/notes/reactions.ts b/packages/backend/src/server/api/endpoints/notes/reactions.ts index af80e0430c8d..f362f46d41e9 100644 --- a/packages/backend/src/server/api/endpoints/notes/reactions.ts +++ b/packages/backend/src/server/api/endpoints/notes/reactions.ts @@ -73,7 +73,7 @@ export default class extends Endpoint { // eslint- ]); const userIds = Array.from(userIdsWhoMeMuting ?? []).concat(Array.from(userIdsWhoBlockingMe ?? [])); - if (userIds.length > 0 ){ + if (userIds.length > 0 ) { query.andWhere('reaction.userId NOT IN (:...userIds)', { userIds: Array.from(userIdsWhoMeMuting ?? []).concat(Array.from(userIdsWhoBlockingMe ?? [])) }); } } diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index 42ed872d91ec..34eb644203c2 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -125,11 +125,14 @@ SPDX-License-Identifier: AGPL-3.0-only + +