feat(Draft): only hide media preview if status is senstive
Closes https://github.com/LucasGGamerM/moshidon/issues/478.
This commit is contained in:
parent
43afbb7523
commit
fbae5d8816
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue