Test if server supports note
This commit is contained in:
parent
9f51517ecd
commit
9ab3f27f72
2 changed files with 4 additions and 1 deletions
|
@ -130,6 +130,9 @@ export default {
|
|||
const privileges = this.loggedIn.privileges
|
||||
return this.loggedIn.role === 'admin' || privileges.includes('users_manage_activation_state') || privileges.includes('users_delete') || privileges.includes('users_manage_tags')
|
||||
},
|
||||
supportsNote () {
|
||||
return 'note' in this.relationship
|
||||
},
|
||||
...mapGetters(['mergedConfig'])
|
||||
},
|
||||
components: {
|
||||
|
|
|
@ -269,7 +269,7 @@
|
|||
<RemoteFollow :user="user" />
|
||||
</div>
|
||||
<UserNote
|
||||
v-if="loggedIn && isOtherUser"
|
||||
v-if="loggedIn && isOtherUser && supportsNote"
|
||||
:user="user"
|
||||
:relationship="relationship"
|
||||
:editing="isEditingNote"
|
||||
|
|
Loading…
Reference in a new issue