mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Removed single author serializer from v2
no issue
This commit is contained in:
parent
2fd5964089
commit
370f3bbcc0
1 changed files with 0 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue