diff --git a/locales/ja.yml b/locales/ja.yml index 03a2cceee..c35c87476 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -93,7 +93,7 @@ common: widgets: "ウィジェット" home: "ホーム" local: "ローカル" - hybrid: "ハイブリッド" + hybrid: "コミュニティ" global: "グローバル" notifications: "通知" list: "リスト" @@ -643,7 +643,7 @@ desktop/views/components/taskmanager.vue: desktop/views/components/timeline.vue: home: "ホーム" local: "ローカル" - hybrid: "ハイブリッド" + hybrid: "コミュニティ" global: "グローバル" list: "リスト" @@ -967,7 +967,7 @@ mobile/views/pages/following.vue: mobile/views/pages/home.vue: home: "ホーム" local: "ローカル" - hybrid: "ハイブリッド" + hybrid: "コミュニティ" global: "グローバル" mobile/views/pages/messaging.vue: diff --git a/src/client/app/common/views/components/messaging-room.message.vue b/src/client/app/common/views/components/messaging-room.message.vue index e39becaca..f33173da6 100644 --- a/src/client/app/common/views/components/messaging-room.message.vue +++ b/src/client/app/common/views/components/messaging-room.message.vue @@ -3,6 +3,7 @@
+

%i18n:@is-read%

@@ -22,7 +23,6 @@
@@ -120,6 +120,17 @@ root(isDark) height 16px cursor pointer + > .read + user-select none + display block + position absolute + z-index 1 + bottom -4px + left -12px + margin 0 + color isDark ? rgba(#fff, 0.5) : rgba(#000, 0.5) + font-size 11px + > .content > .is-deleted @@ -175,14 +186,11 @@ root(isDark) margin 8px 0 > footer - display flex + display block margin 2px 0 0 0 - font-size 11px + font-size 10px color isDark ? rgba(#fff, 0.4) : rgba(#000, 0.4) - > .read - margin 0 8px 0 0 - > [data-fa] margin-left 4px @@ -214,7 +222,7 @@ root(isDark) color #fff > footer - justify-content left + text-align left &[data-is-me] > .avatar @@ -248,7 +256,7 @@ root(isDark) color #fff !important > footer - justify-content right + text-align right &[data-is-deleted] > .baloon diff --git a/src/server/api/call.ts b/src/server/api/call.ts index 255ae61ad..96c218b37 100644 --- a/src/server/api/call.ts +++ b/src/server/api/call.ts @@ -9,10 +9,6 @@ export default (endpoint: string | Endpoint, user: IUser, app: IApp, data: any, const epName = typeof endpoint === 'string' ? endpoint : endpoint.name; const ep = endpoints.find(e => e.name === epName); - if (ep.name.includes('.')) { - return rej('INVALID_ENDPOINT'); - } - if (ep.secure && !isSecure) { return rej('ACCESS_DENIED'); } @@ -21,6 +17,10 @@ export default (endpoint: string | Endpoint, user: IUser, app: IApp, data: any, return rej('SIGNIN_REQUIRED'); } + if (ep.withCredential && user.isSuspended) { + return rej('YOUR_ACCOUNT_HAS_BEEN_SUSPENDED'); + } + if (app && ep.kind) { if (!app.permission.some(p => p === ep.kind)) { return rej('PERMISSION_DENIED');