aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/api/index.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-06-11 14:56:08 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:55 +0300
commitee5f3a4a78cd9a4cc2ed259ce599db95765f24ce (patch)
tree7e0243d335af5b93c49d5d29ce80988bbed8b220 /vnext/src/api/index.js
parentbe48cd1cccacc0cf5b0f6c84455ab54a6a7bf672 (diff)
Message editing
Diffstat (limited to 'vnext/src/api/index.js')
-rw-r--r--vnext/src/api/index.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/vnext/src/api/index.js b/vnext/src/api/index.js
index 2332ed48..e6b1d2ef 100644
--- a/vnext/src/api/index.js
+++ b/vnext/src/api/index.js
@@ -75,6 +75,14 @@ export function comment(mid, rid, body, attach) {
return client.post('/api/comment', form);
}
+export function update(mid, rid, body) {
+ let form = new FormData();
+ form.append('mid', mid);
+ form.append('rid', rid);
+ form.append('body', body);
+ return client.post('/api/update', form);
+}
+
export function updateAvatar(newAvatar) {
let form = new FormData();
form.append('avatar', newAvatar);