Test if server supports note

This commit is contained in:
Tusooa Zhu 2022-08-20 13:20:59 -04:00 committed by tusooa
parent 9f51517ecd
commit 9ab3f27f72
No known key found for this signature in database
GPG Key ID: 7B467EDE43A08224
2 changed files with 4 additions and 1 deletions

View File

@ -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: {

View File

@ -269,7 +269,7 @@
<RemoteFollow :user="user" />
</div>
<UserNote
v-if="loggedIn && isOtherUser"
v-if="loggedIn && isOtherUser && supportsNote"
:user="user"
:relationship="relationship"
:editing="isEditingNote"