aboutsummaryrefslogtreecommitdiff
path: root/src/modules/users.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2022-12-22 13:14:30 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2022-12-22 13:14:30 +0000
commite009510c52d62a19136e01d9f0753448ad703016 (patch)
treeb3dbe611155aeb7d3ff554e900635575792527b4 /src/modules/users.js
parent515dcfd3395ce4c6bd228e6bfc20120de78976c1 (diff)
parent2e2512019230f299c2c9eae18afec3c8218d2697 (diff)
Merge branch 'from/develop/tusooa/user-note' into 'develop'
User note See merge request pleroma/pleroma-fe!1612
Diffstat (limited to 'src/modules/users.js')
-rw-r--r--src/modules/users.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/users.js b/src/modules/users.js
index 10b4603f..053e44b6 100644
--- a/src/modules/users.js
+++ b/src/modules/users.js
@@ -56,6 +56,11 @@ const removeUserFromFollowers = (store, id) => {
.then((relationship) => store.commit('updateUserRelationship', [relationship]))
}
+const editUserNote = (store, { id, comment }) => {
+ return store.rootState.api.backendInteractor.editUserNote({ id, comment })
+ .then((relationship) => store.commit('updateUserRelationship', [relationship]))
+}
+
const muteUser = (store, id) => {
const predictedRelationship = store.state.relationships[id] || { id }
predictedRelationship.muting = true
@@ -335,6 +340,9 @@ const users = {
unblockUsers (store, ids = []) {
return Promise.all(ids.map(id => unblockUser(store, id)))
},
+ editUserNote (store, args) {
+ return editUserNote(store, args)
+ },
fetchMutes (store) {
return store.rootState.api.backendInteractor.fetchMutes()
.then((mutes) => {