Commit 4992d637 authored by Evan Chou's avatar Evan Chou
Browse files

fix meta image, usertags, links population

parent b8689205
......@@ -1428,13 +1428,13 @@ export default formId =>
const meta = isEdit ? jsonMetadata : {};
if (metaTags.size) meta.tags = metaTags.toJS();
else delete meta.tags;
if (rtags.usertags.size) meta.users = rtags.usertags;
if (rtags.usertags.size) meta.users = Array.from(rtags.usertags);
else delete meta.users;
if (rtags.images.size)
meta.image = rtags.images; // TODO: save first image
meta.image = Array.from(rtags.images).slice(0, 1);
else delete meta.image;
if (rtags.links.size)
meta.links = rtags.links; // TODO: remove? save first?
meta.links = Array.from(rtags.links).slice(0, 1);
else delete meta.links;
meta.app = 'hiveblog/0.1';
......
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