show CW in system notification for CW'd statuses (#754)

* show CW in system notification for CW'd statuses

* show spoiler text instead of generic CW message
This commit is contained in:
eleete0712 2018-08-13 22:59:30 +02:00 committed by Konrad Pozniak
parent 44b1afc71f
commit ef1fa0ca94
1 changed files with 5 additions and 1 deletions

View File

@ -549,7 +549,11 @@ public class NotificationHelper {
case MENTION: case MENTION:
case FAVOURITE: case FAVOURITE:
case REBLOG: case REBLOG:
return notification.getStatus().getContent().toString(); if (notification.getStatus().getSensitive()) {
return notification.getStatus().getSpoilerText();
} else {
return notification.getStatus().getContent().toString();
}
} }
return null; return null;
} }