Skip to content

Commit

Permalink
feat(Draft): only hide media preview if status is senstive
Browse files Browse the repository at this point in the history
Closes #478.
  • Loading branch information
FineFindus committed Jul 31, 2024
1 parent 43afbb7 commit fbae5d8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ public Status toStatus() {
s.visibility=params.visibility;
s.language=params.language;
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();
return s;
}
Expand Down

0 comments on commit fbae5d8

Please sign in to comment.