Fix opengraph and reactions for older servers (#2581)

This commit is contained in:
Elias Nahum 2019-02-19 19:04:10 -03:00
parent 0de0920974
commit 4c9ad4a424
No known key found for this signature in database
GPG key ID: E038DB71E0B61702
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);
}
}