commit: 9ab3f27f72c74a61763534eb53b92a3172bb5f5d
parent 9f51517ecdee7de0e9288eb94e6ecf70fd161eb3
Author: Tusooa Zhu <tusooa@kazv.moe>
Date: Sat, 20 Aug 2022 13:20:59 -0400
Test if server supports note
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/components/user_card/user_card.js b/src/components/user_card/user_card.js
@@ -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: {
diff --git a/src/components/user_card/user_card.vue b/src/components/user_card/user_card.vue
@@ -269,7 +269,7 @@
<RemoteFollow :user="user" />
</div>
<UserNote
- v-if="loggedIn && isOtherUser"
+ v-if="loggedIn && isOtherUser && supportsNote"
:user="user"
:relationship="relationship"
:editing="isEditingNote"