diff options
| author | dave <starpumadev@gmail.com> | 2019-04-14 13:18:56 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-05-15 12:04:25 -0400 |
| commit | 075ddc34f1e3139d8a7b6c28802347ecdbe48f34 (patch) | |
| tree | b7ec0d92b437f5bb99ba94672f47ae68887e440e /src/components/extra_buttons/extra_buttons.js | |
| parent | 9fc997500e33d561a1aa5d26c8ed8f4446a0248e (diff) | |
#468 - shwo pin button for valid statuses (public & unlisted)
Diffstat (limited to 'src/components/extra_buttons/extra_buttons.js')
| -rw-r--r-- | src/components/extra_buttons/extra_buttons.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/extra_buttons/extra_buttons.js b/src/components/extra_buttons/extra_buttons.js index 40bab2ab..0b12f993 100644 --- a/src/components/extra_buttons/extra_buttons.js +++ b/src/components/extra_buttons/extra_buttons.js @@ -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') } } } |
