api person update

This commit is contained in:
tmshv committed 2019-08-03 02:56:53 +03:00
1 parent 464485a52c
commit e67d8ab40e
2 files changed
+4 -3

No files matched your search

+2
View File
@@ -1,4 +1,5 @@
import ImageArtifactType from '../core/ImageArtifactType'
import { encodeImage } from './image'
const profilePicture = profile => profile.picture.getPicture(ImageArtifactType.BIG)
export function encodePerson(person) {
@@ -7,5 +8,6 @@ export function encodePerson(person) {
shortName: person.shortName(),
name: person.splitName(),
picture: profilePicture(person),
preview: encodeImage(person.picture),
}
}