Fix opengraph and reactions for older servers (#2581)

This commit is contained in:
Elias Nahum
2019-02-19 19:04:10 -03:00
parent 920e46f9a1
commit 50082e327b
2 changed files with 2 additions and 2 deletions

View File

@@ -184,7 +184,7 @@ export default class PostBodyAdditionalContent extends PureComponent {
return attachments;
}
if (!openGraphData) {
if (!openGraphData && metadata) {
return null;
}

View File

@@ -44,7 +44,7 @@ export default class Reactions extends PureComponent {
componentDidMount() {
const {actions, postId, reactions} = this.props;
if (reactions) {
if (!reactions) {
actions.getReactionsForPost(postId);
}
}