This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Do not show link preview card if toot has a spoiler (
#1617
)
* Do not show link preview card if toot has a spoiler * == to ===
closed-social-glitch-2
Isabelle Knott
7 years ago
committed by
Eugen
parent
9a7ea7c870
commit
97012487ed
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/assets/javascripts/components/features/status/components/detailed_status.jsx
+ 1
- 1
app/assets/javascripts/components/features/status/components/detailed_status.jsx
View File
@ -45,7 +45,7 @@ const DetailedStatus = React.createClass({
}
else
{
media
=
<
MediaGallery
sensitive
=
{
status
.
get
(
'sensitive'
)
}
media
=
{
status
.
get
(
'media_attachments'
)
}
height
=
{
300
}
onOpenMedia
=
{
this
.
props
.
onOpenMedia
}
autoPlayGif
=
{
this
.
props
.
autoPlayGif
}
/
>
;
}
}
else
{
}
else
if
(
status
.
get
(
'spoiler_text'
)
.
length
===
0
)
{
media
=
<
CardContainer
statusId
=
{
status
.
get
(
'id'
)
}
/
>
;
}
Write
Preview
Loading…
Cancel
Save