diff --git a/components/publish/PublishEmojiPicker.client.vue b/components/publish/PublishEmojiPicker.client.vue
index 7bbea4cb..a4b18eef 100644
--- a/components/publish/PublishEmojiPicker.client.vue
+++ b/components/publish/PublishEmojiPicker.client.vue
@@ -44,16 +44,17 @@ const hideEmojiPicker = () => {
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
diff --git a/components/publish/PublishVisibilityPicker.vue b/components/publish/PublishVisibilityPicker.vue
new file mode 100644
index 00000000..1a1192cd
--- /dev/null
+++ b/components/publish/PublishVisibilityPicker.vue
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/components/publish/PublishWidget.vue b/components/publish/PublishWidget.vue
index cb1c4ed1..19c47811 100644
--- a/components/publish/PublishWidget.vue
+++ b/components/publish/PublishWidget.vue
@@ -3,7 +3,6 @@ import type { Attachment, CreateStatusParams, Status, StatusVisibility } from 'm
import { fileOpen } from 'browser-fs-access'
import { useDropZone } from '@vueuse/core'
import { EditorContent } from '@tiptap/vue-3'
-import { statusVisibilities } from '~/composables/masto/icons'
import type { Draft } from '~/types'
type FileUploadError = [filename: string, message: string]
@@ -54,10 +53,6 @@ const { editor } = useTiptap({
onPaste: handlePaste,
})
-const currentVisibility = $computed(() => {
- return statusVisibilities.find(v => v.value === draft.params.visibility) || statusVisibilities[0]
-})
-
let isUploading = $ref(false)
let isExceedingAttachmentLimit = $ref(false)
let failed = $ref([])
@@ -132,10 +127,6 @@ function removeAttachment(index: number) {
draft.attachments.splice(index, 1)
}
-function chooseVisibility(visibility: StatusVisibility) {
- draft.params.visibility = visibility
-}
-
async function publish() {
const payload = {
...draft.params,
@@ -291,16 +282,20 @@ defineExpose({
+ >
+
+
-
+
-
+
+