MM-14622 Use post id when retrieving opengraph data from mattermost-redux (#3516)
* Use post id when retrieving opengraph data from mattermost-redux * Updated package.json with the appropriate PR for mattermost-redux * Switch mattermost-redux back to master
This commit is contained in:
parent
9fe3ba0072
commit
e1cf5ac960
3 changed files with 6 additions and 6 deletions
|
|
@ -54,7 +54,7 @@ function makeMapStateToProps() {
|
|||
|
||||
const removeLinkPreview = ownProps.postProps.remove_link_preview === 'true';
|
||||
|
||||
let openGraphData = getOpenGraphMetadataForUrl(state, link);
|
||||
let openGraphData = getOpenGraphMetadataForUrl(state, ownProps.postId, link);
|
||||
if (!openGraphData) {
|
||||
const data = getOpenGraphData(ownProps.metadata, link);
|
||||
openGraphData = data?.data;
|
||||
|
|
|
|||
8
package-lock.json
generated
8
package-lock.json
generated
|
|
@ -4311,7 +4311,7 @@
|
|||
"dependencies": {
|
||||
"json5": {
|
||||
"version": "0.5.1",
|
||||
"resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz",
|
||||
"resolved": "http://registry.npmjs.org/json5/-/json5-0.5.1.tgz",
|
||||
"integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=",
|
||||
"dev": true
|
||||
}
|
||||
|
|
@ -7217,8 +7217,8 @@
|
|||
}
|
||||
},
|
||||
"mattermost-redux": {
|
||||
"version": "github:mattermost/mattermost-redux#01b1ec33aece728954df6d93b214dadb28e65063",
|
||||
"from": "github:mattermost/mattermost-redux#01b1ec33aece728954df6d93b214dadb28e65063",
|
||||
"version": "github:mattermost/mattermost-redux#876c4cbe4087509442bae3aaba6aaae947cbf8d8",
|
||||
"from": "github:mattermost/mattermost-redux#876c4cbe4087509442bae3aaba6aaae947cbf8d8",
|
||||
"requires": {
|
||||
"core-js": "3.1.4",
|
||||
"form-data": "2.5.1",
|
||||
|
|
@ -8291,7 +8291,7 @@
|
|||
}
|
||||
},
|
||||
"mmjstool": {
|
||||
"version": "github:mattermost/mattermost-utilities#b3e2e308b8b85469849a91c21958b46a89ab33ab",
|
||||
"version": "github:mattermost/mattermost-utilities#ce99d7a9e82128a02fd36e44720a4aef2653810d",
|
||||
"from": "github:mattermost/mattermost-utilities",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
"intl": "1.2.5",
|
||||
"jail-monkey": "2.3.0",
|
||||
"jsc-android": "241213.1.0",
|
||||
"mattermost-redux": "github:mattermost/mattermost-redux#01b1ec33aece728954df6d93b214dadb28e65063",
|
||||
"mattermost-redux": "github:mattermost/mattermost-redux#876c4cbe4087509442bae3aaba6aaae947cbf8d8",
|
||||
"mime-db": "1.42.0",
|
||||
"moment-timezone": "0.5.27",
|
||||
"prop-types": "15.7.2",
|
||||
|
|
|
|||
Loading…
Reference in a new issue