diff options
| author | Henry Jameson <me@hjkos.com> | 2020-10-17 21:26:13 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2020-10-17 21:26:13 +0300 |
| commit | a664fde02f5f5eec96bbcaa2b6f19e1694541e76 (patch) | |
| tree | 251b21d50cb6e0dbc8a4d8082989266aca6c8e54 /src/modules/statuses.js | |
| parent | 29ff0be92cfd87ba95d1f78323794dfb1223b514 (diff) | |
| parent | 76a9a51620c01257492a450f6cd0a6f98a885dce (diff) | |
Merge remote-tracking branch 'origin/develop' into settings-changed
* origin/develop:
fix fontello
Translated using Weblate (Russian)
Translated using Weblate (Italian)
lint fix
fixed copy-pasting leftovers
improved algorithm, possibly speed too
fix 8x spaces inside this paren
feat/reorder-emojis-by-position-of-keyword
rename to gravestone
Apply 1 suggestion(s) to 1 file(s)
change i18n phrasing
separate reply button to its own component, add changelog entry
add basic deletes support that works with masto WS
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) }, |
