mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-15 05:05:42 +01:00
本文からメンション等を展開しないオプション (#3721)
This commit is contained in:
parent
21bed71f5e
commit
e2fc7decad
1 changed files with 27 additions and 0 deletions
|
@ -82,6 +82,30 @@ export const meta = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
noExtractMentions: {
|
||||||
|
validator: $.bool.optional,
|
||||||
|
default: false,
|
||||||
|
desc: {
|
||||||
|
'ja-JP': '本文からメンションを展開しないか否か。'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
noExtractHashtags: {
|
||||||
|
validator: $.bool.optional,
|
||||||
|
default: false,
|
||||||
|
desc: {
|
||||||
|
'ja-JP': '本文からハッシュタグを展開しないか否か。'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
noExtractEmojis: {
|
||||||
|
validator: $.bool.optional,
|
||||||
|
default: false,
|
||||||
|
desc: {
|
||||||
|
'ja-JP': '本文からカスタム絵文字を展開しないか否か。'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
geo: {
|
geo: {
|
||||||
validator: $.obj({
|
validator: $.obj({
|
||||||
coordinates: $.arr().length(2)
|
coordinates: $.arr().length(2)
|
||||||
|
@ -237,6 +261,9 @@ export default define(meta, (ps, user, app) => new Promise(async (res, rej) => {
|
||||||
localOnly: ps.localOnly,
|
localOnly: ps.localOnly,
|
||||||
visibility: ps.visibility,
|
visibility: ps.visibility,
|
||||||
visibleUsers,
|
visibleUsers,
|
||||||
|
apMentions: ps.noExtractMentions ? [] : undefined,
|
||||||
|
apHashtags: ps.noExtractHashtags ? [] : undefined,
|
||||||
|
apEmojis: ps.noExtractEmojis ? [] : undefined,
|
||||||
geo: ps.geo
|
geo: ps.geo
|
||||||
})
|
})
|
||||||
.then(note => pack(note, user))
|
.then(note => pack(note, user))
|
||||||
|
|
Loading…
Reference in a new issue