Commit 4826d725 authored by Tae Hoon's avatar Tae Hoon

update prop name

parent 7f9feacd
......@@ -12,7 +12,7 @@ const Timeline = {
'tag',
'embedded',
'count',
'excludedStatusIds'
'pinnedStatusIds'
],
data () {
return {
......@@ -42,8 +42,8 @@ const Timeline = {
}
},
statuses () {
if (this.excludedStatusIds && this.excludedStatusIds.length > 0) {
return this.timeline.visibleStatuses && this.timeline.visibleStatuses.filter(status => !this.excludedStatusIds.includes(status.id))
if (this.pinnedStatusIds && this.pinnedStatusIds.length > 0) {
return this.timeline.visibleStatuses && this.timeline.visibleStatuses.filter(status => !this.pinnedStatusIds.includes(status.id))
} else {
return this.timeline.visibleStatuses
}
......
......@@ -34,6 +34,7 @@
:timeline="timeline"
:timeline-name="'user'"
:user-id="userId"
:pinned-status-ids="user.pinnedStatuseIds"
/>
</div>
<div
......@@ -75,7 +76,6 @@
timeline-name="media"
:timeline="media"
:user-id="userId"
:excludedStatusIds="user.pinnedStatuseIds"
/>
<Timeline
v-if="isUs"
......
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