Commit 85087a0d authored by Quoc Huy Nguyen Dinh's avatar Quoc Huy Nguyen Dinh

Don't extract images from body for cover image selection if not in story mode

parent 6a952bb5
......@@ -661,7 +661,10 @@ class ReplyEditor extends React.Component {
// Generate an array of images used in the post body.
// This will be used to display the cover image selector.
let selectedCoverImage = '';
const rtags = extractRtags(body.value);
let rtags;
if (isStory) {
rtags = extractRtags(body.value);
const errorCallback = estr => {
this.setState({ postError: estr, loading: false });
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment