Commit 876c6de8 authored by Tae Hoon's avatar Tae Hoon

fix typos

parent dca384f1
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
:timeline="timeline" :timeline="timeline"
timeline-name="user" timeline-name="user"
:user-id="userId" :user-id="userId"
:pinned-status-ids="user.pinnedStatuseIds" :pinned-status-ids="user.pinnedStatusIds"
/> />
</div> </div>
<div <div
......
...@@ -167,11 +167,11 @@ export const mutations = { ...@@ -167,11 +167,11 @@ export const mutations = {
}, },
setPinned (state, status) { setPinned (state, status) {
const user = state.usersObject[status.user.id] 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) { if (status.pinned && index === -1) {
user.pinnedStatuseIds.push(status.id) user.pinnedStatusIds.push(status.id)
} else if (!status.pinned && index !== -1) { } else if (!status.pinned && index !== -1) {
user.pinnedStatuseIds.splice(index, 1) user.pinnedStatusIds.splice(index, 1)
} }
}, },
setUserForStatus (state, status) { setUserForStatus (state, status) {
......
...@@ -152,7 +152,7 @@ export const parseUser = (data) => { ...@@ -152,7 +152,7 @@ export const parseUser = (data) => {
output.statuses_count = data.statuses_count output.statuses_count = data.statuses_count
output.friendIds = [] output.friendIds = []
output.followerIds = [] output.followerIds = []
output.pinnedStatuseIds = [] output.pinnedStatusIds = []
if (data.pleroma) { if (data.pleroma) {
output.follow_request_count = data.pleroma.follow_request_count output.follow_request_count = data.pleroma.follow_request_count
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment