Removed single author serializer from v2

no issue
This commit is contained in:
kirrg001 2019-02-25 23:35:09 +01:00
parent 2fd5964089
commit 370f3bbcc0

View File

@ -46,10 +46,6 @@ const mapPost = (model, frame) => {
jsonModel.tags = jsonModel.tags.map(tag => mapTag(tag, frame));
}
if (relation === 'author' && jsonModel.author) {
jsonModel.author = mapUser(jsonModel.author, frame);
}
if (relation === 'authors' && jsonModel.authors) {
jsonModel.authors = jsonModel.authors.map(author => mapUser(author, frame));
}