forked from AkkomaGang/akkoma-fe
update prop name
This commit is contained in:
parent
7f9feacd26
commit
4826d72549
2 changed files with 4 additions and 4 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue