Test if server supports note
This commit is contained in:
parent
9f51517ecd
commit
9ab3f27f72
@ -130,6 +130,9 @@ export default {
|
|||||||
const privileges = this.loggedIn.privileges
|
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')
|
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'])
|
...mapGetters(['mergedConfig'])
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
@ -269,7 +269,7 @@
|
|||||||
<RemoteFollow :user="user" />
|
<RemoteFollow :user="user" />
|
||||||
</div>
|
</div>
|
||||||
<UserNote
|
<UserNote
|
||||||
v-if="loggedIn && isOtherUser"
|
v-if="loggedIn && isOtherUser && supportsNote"
|
||||||
:user="user"
|
:user="user"
|
||||||
:relationship="relationship"
|
:relationship="relationship"
|
||||||
:editing="isEditingNote"
|
:editing="isEditingNote"
|
||||||
|
Loading…
Reference in New Issue
Block a user