fix typos

This commit is contained in:
taehoon 2019-07-19 22:49:29 -04:00
parent dca384f123
commit 876c6de806
3 changed files with 5 additions and 5 deletions

View file

@ -22,7 +22,7 @@
:timeline="timeline"
timeline-name="user"
:user-id="userId"
:pinned-status-ids="user.pinnedStatuseIds"
:pinned-status-ids="user.pinnedStatusIds"
/>
</div>
<div

View file

@ -167,11 +167,11 @@ export const mutations = {
},
setPinned (state, status) {
const user = state.usersObject[status.user.id]
const index = user.pinnedStatuseIds.indexOf(status.id)
const index = user.pinnedStatusIds.indexOf(status.id)
if (status.pinned && index === -1) {
user.pinnedStatuseIds.push(status.id)
user.pinnedStatusIds.push(status.id)
} else if (!status.pinned && index !== -1) {
user.pinnedStatuseIds.splice(index, 1)
user.pinnedStatusIds.splice(index, 1)
}
},
setUserForStatus (state, status) {

View file

@ -152,7 +152,7 @@ export const parseUser = (data) => {
output.statuses_count = data.statuses_count
output.friendIds = []
output.followerIds = []
output.pinnedStatuseIds = []
output.pinnedStatusIds = []
if (data.pleroma) {
output.follow_request_count = data.pleroma.follow_request_count