feat: サーバーサイレンス機能を追加 (#12031)
* feat : サーバーサイレンスを追加 * Update CHANGELOG.md * Update CHANGELOG.md * Update locale * Update instance-info.vue * update misskey-js.api.md * lint fix * migration fix * 既存のものを使うように * fix * 色々直した * Update packages/frontend/src/pages/admin/instance-block.vue * Update packages/frontend/src/pages/admin/instance-block.vue * Update packages/frontend/src/components/MkInstanceCardMini.vue * Update packages/backend/src/core/entities/InstanceEntityService.ts * Update packages/backend/src/core/entities/InstanceEntityService.ts * Update packages/backend/src/core/entities/InstanceEntityService.ts * Update packages/backend/src/core/UserFollowingService.ts * Update packages/backend/src/core/UserFollowingService.ts * fix: サイレンスされてるサーバーからの投稿は全部ホームにする * fix: undefinedでfalseを返すようにした --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
		| @@ -76,6 +76,11 @@ export class MiMeta { | ||||
| 	}) | ||||
| 	public sensitiveWords: string[]; | ||||
|  | ||||
| 	@Column('varchar', { | ||||
| 		length: 1024, array: true, default: '{}', | ||||
| 	}) | ||||
| 	public silencedHosts: string[]; | ||||
|  | ||||
| 	@Column('varchar', { | ||||
| 		length: 1024, | ||||
| 		nullable: true, | ||||
|   | ||||
| @@ -93,6 +93,11 @@ export const packedFederationInstanceSchema = { | ||||
| 			type: 'string', | ||||
| 			optional: false, nullable: true, | ||||
| 		}, | ||||
| 		isSilenced: { | ||||
| 			type: "boolean", | ||||
| 			optional: false, | ||||
| 			nullable: false, | ||||
| 		}, | ||||
| 		infoUpdatedAt: { | ||||
| 			type: 'string', | ||||
| 			optional: false, nullable: true, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 まっちゃてぃー
					まっちゃてぃー