lint
This commit is contained in:
parent
00de60eec4
commit
c697041dfc
4 changed files with 11 additions and 13 deletions
|
|
@ -16,7 +16,7 @@ export function StatusCodeError(statusCode, body, options, response) {
|
|||
this.statusText = body.error.error || body.error
|
||||
this.details = JSON && JSON.stringify ? JSON.stringify(body) : body
|
||||
this.errorData = body.error
|
||||
this.message = statusCode + ' - ' + statusText
|
||||
this.message = this.statusCode + ' - ' + this.statusText
|
||||
this.error = body // legacy attribute
|
||||
this.options = options
|
||||
this.response = response
|
||||
|
|
|
|||
|
|
@ -37,12 +37,13 @@ const postStatus = ({
|
|||
preview,
|
||||
idempotencyKey,
|
||||
}).then(({ data }) => {
|
||||
if (!preview) store.dispatch('addNewStatuses', {
|
||||
statuses: [data],
|
||||
timeline: 'friends',
|
||||
showImmediately: true,
|
||||
noIdUpdate: true, // To prevent missing notices on next pull.
|
||||
})
|
||||
if (!preview)
|
||||
store.dispatch('addNewStatuses', {
|
||||
statuses: [data],
|
||||
timeline: 'friends',
|
||||
showImmediately: true,
|
||||
noIdUpdate: true, // To prevent missing notices on next pull.
|
||||
})
|
||||
|
||||
return data
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue