feat(Draft): only hide media preview if status is senstive

Closes https://github.com/LucasGGamerM/moshidon/issues/478.
This commit is contained in:
FineFindus 2024-07-31 22:39:26 +02:00
parent 43afbb7523
commit fbae5d8816
No known key found for this signature in database
GPG Key ID: 64873EE210FF8E6B
1 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,8 @@ public class ScheduledStatus extends BaseModel implements DisplayItemsParent{
s.visibility=params.visibility; s.visibility=params.visibility;
s.language=params.language; s.language=params.language;
s.sensitive=params.sensitive; s.sensitive=params.sensitive;
// hide media preview only if status is marked as sensitive
s.sensitiveRevealed=!params.sensitive;
if(params.poll!=null) s.poll=params.poll.toPoll(); if(params.poll!=null) s.poll=params.poll.toPoll();
return s; return s;
} }