Fix lint errors and warnings
This commit is contained in:
parent
081aa0fd05
commit
232cc72df8
|
@ -11,10 +11,10 @@
|
||||||
<PostStatusForm
|
<PostStatusForm
|
||||||
class="panel-body"
|
class="panel-body"
|
||||||
v-bind="params"
|
v-bind="params"
|
||||||
@posted="closeModal"
|
|
||||||
:disablePolls="true"
|
|
||||||
:disableVisibilitySelector="true"
|
|
||||||
:post-handler="doEditStatus"
|
:post-handler="doEditStatus"
|
||||||
|
:disable-polls="true"
|
||||||
|
:disable-visibility-selector="true"
|
||||||
|
@posted="closeModal"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
|
@ -340,13 +340,11 @@
|
||||||
keypath="time.in_past"
|
keypath="time.in_past"
|
||||||
tag="span"
|
tag="span"
|
||||||
>
|
>
|
||||||
<template>
|
<Timeago
|
||||||
<Timeago
|
:time="status.edited_at"
|
||||||
:time="status.edited_at"
|
:auto-update="60"
|
||||||
:auto-update="60"
|
:long-format="true"
|
||||||
:long-format="true"
|
/>
|
||||||
/>
|
|
||||||
</template>
|
|
||||||
</i18n-t>
|
</i18n-t>
|
||||||
</template>
|
</template>
|
||||||
</i18n-t>
|
</i18n-t>
|
||||||
|
|
|
@ -17,9 +17,9 @@
|
||||||
v-for="status in history"
|
v-for="status in history"
|
||||||
:key="status.id"
|
:key="status.id"
|
||||||
:statusoid="status"
|
:statusoid="status"
|
||||||
:isPreview="true"
|
:is-preview="true"
|
||||||
class="conversation-status status-fadein panel-body"
|
class="conversation-status status-fadein panel-body"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -417,7 +417,7 @@ const fetchStatus = ({ id, credentials }) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const fetchStatusSource = ({ id, credentials }) => {
|
const fetchStatusSource = ({ id, credentials }) => {
|
||||||
let url = MASTODON_STATUS_SOURCE_URL(id)
|
const url = MASTODON_STATUS_SOURCE_URL(id)
|
||||||
return fetch(url, { headers: authHeaders(credentials) })
|
return fetch(url, { headers: authHeaders(credentials) })
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
if (data.ok) {
|
if (data.ok) {
|
||||||
|
@ -430,7 +430,7 @@ const fetchStatusSource = ({ id, credentials }) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const fetchStatusHistory = ({ status, credentials }) => {
|
const fetchStatusHistory = ({ status, credentials }) => {
|
||||||
let url = MASTODON_STATUS_HISTORY_URL(status.id)
|
const url = MASTODON_STATUS_HISTORY_URL(status.id)
|
||||||
return promisedRequest({ url, credentials })
|
return promisedRequest({ url, credentials })
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
data.reverse()
|
data.reverse()
|
||||||
|
@ -767,7 +767,7 @@ const editStatus = ({
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
let putHeaders = authHeaders(credentials)
|
const putHeaders = authHeaders(credentials)
|
||||||
|
|
||||||
return fetch(MASTODON_STATUS_URL(id), {
|
return fetch(MASTODON_STATUS_URL(id), {
|
||||||
body: form,
|
body: form,
|
||||||
|
|
|
@ -378,7 +378,7 @@ export const parseStatus = (data) => {
|
||||||
output.favoritedBy = []
|
output.favoritedBy = []
|
||||||
output.rebloggedBy = []
|
output.rebloggedBy = []
|
||||||
|
|
||||||
if (data.hasOwnProperty('originalStatus')) {
|
if (Object.prototype.hasOwnProperty.call(data, 'originalStatus')) {
|
||||||
Object.assign(output, data.originalStatus)
|
Object.assign(output, data.originalStatus)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue