only mark sensitive when set

This commit is contained in:
Mariotaku Lee 2017-01-22 21:31:25 +08:00
parent a45eb56c90
commit 5f6dcf6556
No known key found for this signature in database
GPG Key ID: 9C0706AE47FCE2AD
1 changed files with 3 additions and 1 deletions

View File

@ -363,7 +363,9 @@ class UpdateStatusTask(
if (mediaIds != null) {
status.mediaIds(*mediaIds)
}
status.possiblySensitive(statusUpdate.is_possibly_sensitive)
if (statusUpdate.is_possibly_sensitive) {
status.possiblySensitive(statusUpdate.is_possibly_sensitive)
}
return microBlog.updateStatus(status)
}