diff options
| author | William Pitcock <nenolod@dereferenced.org> | 2019-02-18 05:03:26 +0000 |
|---|---|---|
| committer | xenofem <xenofem@xeno.science> | 2020-06-28 02:10:06 -0400 |
| commit | 2c6ec37e6a796d2d7be7be58ac0e3c6c8bbd6a18 (patch) | |
| tree | 114e159337270a4a1d9e6a4fd8cb2d081a329161 /src/services/api/api.service.js | |
| parent | 391f796cb491478105a617b6554e9334cca1443b (diff) | |
media description support
Diffstat (limited to 'src/services/api/api.service.js')
| -rw-r--r-- | src/services/api/api.service.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/services/api/api.service.js b/src/services/api/api.service.js index dfffc291..cb205e3f 100644 --- a/src/services/api/api.service.js +++ b/src/services/api/api.service.js @@ -617,7 +617,8 @@ const postStatus = ({ poll, mediaIds = [], inReplyToStatusId, - contentType + contentType, + mediaDescriptions }) => { const form = new FormData() const pollOptions = poll.options || [] @@ -644,6 +645,7 @@ const postStatus = ({ form.append('poll[options][]', option) }) } + form.append('descriptions', JSON.stringify(mediaDescriptions)) if (inReplyToStatusId) { form.append('in_reply_to_id', inReplyToStatusId) } |
