aboutsummaryrefslogtreecommitdiff
path: root/src/Post.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/Post.js')
-rw-r--r--src/Post.js15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/Post.js b/src/Post.js
index 18d81e0..68ba36e 100644
--- a/src/Post.js
+++ b/src/Post.js
@@ -91,7 +91,7 @@ class Post extends Component {
handleConfirm() {
this.setState({ deleteDialog: false });
const { post, currentBoard } = this.props;
- let password = localStorage.getItem("password");
+ let password = JSON.parse(localStorage.getItem("settings")).postPassword;
fetch(
`https://bienvenidoainternet.org/cgi/api/delete?dir=${currentBoard.dir}&id=${post.id}&password=${password}`
)
@@ -251,12 +251,17 @@ class Post extends Component {
isDeleteable = false;
}
+ let settingRenderAvatar = JSON.parse(localStorage.getItem("settings"))
+ .showAvatars;
+
return (
<Comment inverted={nightMode}>
- <Comment.Avatar
- src={`https://bienvenidoainternet.org/static/ico/${rndAvatar}.gif`}
- style={{ filter: `hue-rotate(${hue}deg)` }}
- />
+ {settingRenderAvatar && (
+ <Comment.Avatar
+ src={`https://bienvenidoainternet.org/static/ico/${rndAvatar}.gif`}
+ style={{ filter: `hue-rotate(${hue}deg)` }}
+ />
+ )}
<Comment.Content>
<Comment.Author
as="a"