aboutsummaryrefslogtreecommitdiff
path: root/src/Post.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/Post.js')
-rw-r--r--src/Post.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Post.js b/src/Post.js
index 5a938bf..d18f89c 100644
--- a/src/Post.js
+++ b/src/Post.js
@@ -271,6 +271,8 @@ class Post extends Component {
let settingRenderAvatar = JSON.parse(localStorage.getItem("settings"))
.showAvatars;
+ let settingEmbedYoutube = JSON.parse(localStorage.getItem("settings"))
+ .embedYoutube;
return (
<Comment inverted={nightMode}>
@@ -365,7 +367,7 @@ class Post extends Component {
</div>
) : null}
- {youtubeVideos !== null
+ {youtubeVideos !== null && settingEmbedYoutube
? youtubeVideos.map((url, i) => {
let id = url.split("?v=")[1];
return (