diff --git a/ansible/VERSION b/ansible/VERSION index 98f166f96..3a952db02 100644 --- a/ansible/VERSION +++ b/ansible/VERSION @@ -1 +1 @@ -v0.7.12 +v0.7.13 diff --git a/docker/prod/docker-compose.yml b/docker/prod/docker-compose.yml index c07ad5327..f05a9b384 100644 --- a/docker/prod/docker-compose.yml +++ b/docker/prod/docker-compose.yml @@ -12,7 +12,7 @@ services: restart: always lemmy: - image: dessalines/lemmy:v0.7.12 + image: dessalines/lemmy:v0.7.13 ports: - "127.0.0.1:8536:8536" restart: always diff --git a/server/src/lib.rs b/server/src/lib.rs index 04f376fb4..08c3fa98a 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -325,7 +325,7 @@ pub fn markdown_to_html(text: &str) -> String { pub fn get_ip(conn_info: &ConnectionInfo) -> String { conn_info - .remote_addr() + .realip_remote_addr() .unwrap_or("127.0.0.1:12345") .split(':') .next() diff --git a/server/src/version.rs b/server/src/version.rs index cfac62945..cecd8dc68 100644 --- a/server/src/version.rs +++ b/server/src/version.rs @@ -1 +1 @@ -pub const VERSION: &str = "v0.7.12"; +pub const VERSION: &str = "v0.7.13"; diff --git a/ui/src/components/comment-node.tsx b/ui/src/components/comment-node.tsx index 762344aae..ab9321bda 100644 --- a/ui/src/components/comment-node.tsx +++ b/ui/src/components/comment-node.tsx @@ -74,6 +74,7 @@ interface CommentNodeProps { showCommunity?: boolean; sort?: CommentSortType; sortType?: SortType; + enableDownvotes: boolean; } export class CommentNode extends Component { @@ -287,7 +288,7 @@ export class CommentNode extends Component { {this.state.upvotes} )} - {WebSocketService.Instance.site.enable_downvotes && ( + {this.props.enableDownvotes && (