Filter NSFW content in room directory (#10196)
* add SpotlightSearch.showNsfwPublicRooms setting * use setting in publicroomsearch * add nsfw keyword filter and setting for room directory * unit tests * remove assertions
This commit is contained in:
@@ -743,6 +743,11 @@ export const SETTINGS: { [setting: string]: ISetting } = {
|
||||
supportedLevels: [SettingLevel.ACCOUNT],
|
||||
default: [], // list of room IDs, most recent first
|
||||
},
|
||||
"SpotlightSearch.showNsfwPublicRooms": {
|
||||
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
||||
displayName: _td("Show NSFW content"),
|
||||
default: false,
|
||||
},
|
||||
"room_directory_servers": {
|
||||
supportedLevels: [SettingLevel.ACCOUNT],
|
||||
default: [],
|
||||
|
||||
Reference in New Issue
Block a user