|
|
@ -165,11 +165,19 @@ export function submitCompose(routerHistory) {
|
|
|
|
// API call.
|
|
|
|
// API call.
|
|
|
|
let media_attributes;
|
|
|
|
let media_attributes;
|
|
|
|
if (statusId !== null) {
|
|
|
|
if (statusId !== null) {
|
|
|
|
media_attributes = media.map(item => ({
|
|
|
|
media_attributes = media.map(item => {
|
|
|
|
|
|
|
|
let focus;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (item.getIn(['meta', 'focus'])) {
|
|
|
|
|
|
|
|
focus = `${item.getIn(['meta', 'focus', 'x']).toFixed(2)},${item.getIn(['meta', 'focus', 'y']).toFixed(2)}`;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
id: item.get('id'),
|
|
|
|
id: item.get('id'),
|
|
|
|
description: item.get('description'),
|
|
|
|
description: item.get('description'),
|
|
|
|
focus: item.get('focus'),
|
|
|
|
focus,
|
|
|
|
}));
|
|
|
|
};
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
api(getState).request({
|
|
|
|
api(getState).request({
|
|
|
|