fix sensitive media in search and notifications (#2335)
This commit is contained in:
parent
8335a3bb3c
commit
329df1280b
2 changed files with 15 additions and 7 deletions
|
|
@ -185,9 +185,11 @@ public class NotificationsFragment extends SFragment implements
|
|||
Notification notification = input.asRight()
|
||||
.rewriteToStatusTypeIfNeeded(accountManager.getActiveAccount().getAccountId());
|
||||
|
||||
boolean sensitiveStatus = notification.getStatus() != null && notification.getStatus().getActionableStatus().getSensitive();
|
||||
|
||||
return ViewDataUtils.notificationToViewData(
|
||||
notification,
|
||||
alwaysShowSensitiveMedia,
|
||||
alwaysShowSensitiveMedia || !sensitiveStatus,
|
||||
alwaysOpenSpoiler,
|
||||
true
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue