mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
Removed single author serializer from v2
no issue
This commit is contained in:
parent
2fd5964089
commit
370f3bbcc0
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user