diff --git a/src/components/posts/PostAction.vue b/src/components/posts/PostAction.vue index 8a2e091..ba8ff8f 100644 --- a/src/components/posts/PostAction.vue +++ b/src/components/posts/PostAction.vue @@ -22,7 +22,7 @@ const editor = useEditor() const props = defineProps<{ item: any }>() -const isOwned = computed(() => props.item?.author_id === id.userinfo.data.id) +const isOwned = computed(() => props.item?.author_id === id.userinfo.idSet.interactive) function editPost() { editor.related.edit_to = JSON.parse(JSON.stringify(props.item)) diff --git a/src/components/realms/RealmMembers.vue b/src/components/realms/RealmMembers.vue index 231c5bb..1cd113c 100644 --- a/src/components/realms/RealmMembers.vue +++ b/src/components/realms/RealmMembers.vue @@ -63,7 +63,7 @@ const props = defineProps<{ item: any }>() const members = ref([]) const isOwned = computed(() => { - return id.userinfo.data?.id === props.item?.account_id + return id.userinfo.idSet?.interactive === props.item?.account_id }) const { showErrorSnackbar } = useUI()