diff options
| author | Shpuld Shpludson <shp@cock.li> | 2020-10-12 06:05:21 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2020-10-12 06:05:21 +0000 |
| commit | d86cd3e850fe1c47a52b7730fec126f5787ab439 (patch) | |
| tree | 65848d473255432819229b0abca542f1c3a37539 /src/modules/statuses.js | |
| parent | 3ca729d09880813420a263221cdc68bcca13a1fb (diff) | |
| parent | 414558665f8370390cf4c6dc3c79745217d8d522 (diff) | |
Merge branch 'feat/masto-ws-deletes' into 'develop'
Support for WS deletes
See merge request pleroma/pleroma-fe!1227
Diffstat (limited to 'src/modules/statuses.js')
| -rw-r--r-- | src/modules/statuses.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/statuses.js b/src/modules/statuses.js index 155cc4b9..e673141d 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -611,6 +611,10 @@ const statuses = { commit('setDeleted', { status }) apiService.deleteStatus({ id: status.id, credentials: rootState.users.currentUser.credentials }) }, + deleteStatusById ({ rootState, commit }, id) { + const status = rootState.statuses.allStatusesObject[id] + commit('setDeleted', { status }) + }, markStatusesAsDeleted ({ commit }, condition) { commit('setManyDeleted', condition) }, |
