常にメディアを閲覧注意として投稿するオプションを実装
This commit is contained in:
parent
c87a43bdba
commit
3220d69a69
7 changed files with 37 additions and 5 deletions
|
|
@ -153,7 +153,7 @@ export default async function(
|
|||
isLink: boolean = false,
|
||||
url: string = null,
|
||||
uri: string = null,
|
||||
sensitive = false
|
||||
sensitive: boolean = null
|
||||
): Promise<IDriveFile> {
|
||||
// Calc md5 hash
|
||||
const calcHash = new Promise<string>((res, rej) => {
|
||||
|
|
@ -329,7 +329,13 @@ export default async function(
|
|||
properties: properties,
|
||||
withoutChunks: isLink,
|
||||
isRemote: isLink,
|
||||
isSensitive: sensitive
|
||||
isSensitive: (sensitive !== null && sensitive !== undefined)
|
||||
? sensitive
|
||||
: isLocalUser(user)
|
||||
? user.settings.alwaysMarkNsfw
|
||||
? true
|
||||
: false
|
||||
: false
|
||||
} as IMetadata;
|
||||
|
||||
if (url !== null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue