インスタンスブロックを設定できるように
This commit is contained in:
@ -70,6 +70,13 @@ export const meta = {
|
||||
}
|
||||
},
|
||||
|
||||
blockedHosts: {
|
||||
validator: $.optional.nullable.arr($.str),
|
||||
desc: {
|
||||
'ja-JP': 'ブロックするホスト'
|
||||
}
|
||||
},
|
||||
|
||||
mascotImageUrl: {
|
||||
validator: $.optional.nullable.str,
|
||||
desc: {
|
||||
@ -389,6 +396,10 @@ export default define(meta, async (ps) => {
|
||||
set.hiddenTags = ps.hiddenTags;
|
||||
}
|
||||
|
||||
if (Array.isArray(ps.blockedHosts)) {
|
||||
set.blockedHosts = ps.blockedHosts;
|
||||
}
|
||||
|
||||
if (ps.mascotImageUrl !== undefined) {
|
||||
set.mascotImageUrl = ps.mascotImageUrl;
|
||||
}
|
||||
|
@ -165,6 +165,7 @@ export default define(meta, async (ps, me) => {
|
||||
response.useStarForReactionFallback = instance.useStarForReactionFallback;
|
||||
response.pinnedUsers = instance.pinnedUsers;
|
||||
response.hiddenTags = instance.hiddenTags;
|
||||
response.blockedHosts = instance.blockedHosts;
|
||||
response.recaptchaSecretKey = instance.recaptchaSecretKey;
|
||||
response.proxyAccount = instance.proxyAccount;
|
||||
response.twitterConsumerKey = instance.twitterConsumerKey;
|
||||
|
Reference in New Issue
Block a user