#468 - shwo pin button for valid statuses (public & unlisted)

This commit is contained in:
dave 2019-04-14 13:18:56 -04:00 committed by taehoon
parent 9fc997500e
commit 075ddc34f1
2 changed files with 5 additions and 2 deletions

View file

@ -44,6 +44,9 @@ const ExtraButtons = {
},
ownStatus () {
return this.status.user.id === this.currentUser.id
},
canPin () {
return this.ownStatus && (this.status.visibility === 'public' || this.status.visibility === 'unlisted')
}
}
}