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:
parent
44b1afc71f
commit
ef1fa0ca94
|
@ -549,8 +549,12 @@ public class NotificationHelper {
|
||||||
case MENTION:
|
case MENTION:
|
||||||
case FAVOURITE:
|
case FAVOURITE:
|
||||||
case REBLOG:
|
case REBLOG:
|
||||||
|
if (notification.getStatus().getSensitive()) {
|
||||||
|
return notification.getStatus().getSpoilerText();
|
||||||
|
} else {
|
||||||
return notification.getStatus().getContent().toString();
|
return notification.getStatus().getContent().toString();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue