Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.
PHP ai-agentsblueskyfacebookinstagramlaravellinkedinmastodonmcpmcp-serveropen-sourcerest-apiself-hostedsocial-mediasocial-media-managementsocial-media-schedulerthreadstiktokvuejsxyoutube
Merge the alt-text setter into the save handler
Paulo Castellanoa1f2fea1bc8a
diff --git a/resources/js/components/posts/editor/PostEditorComposer.vue b/resources/js/components/posts/editor/PostEditorComposer.vueindex 3729b6ea9..96ede96b7 100644--- a/resources/js/components/posts/editor/PostEditorComposer.vue+++ b/resources/js/components/posts/editor/PostEditorComposer.vue@@ -219,20 +219,17 @@ const openAltText = (index: number) => {altDialogOpen.value = true;};-const setAltText = (index: number, alt: string): void => {+const onAltTextSave = (alt: string): void => {+ if (altDialogIndex.value === null) return;+const next = [...media.value];const trimmed = alt.trim();- next[index] = {- ...next[index],- meta: { ...(next[index].meta ?? {}), alt_text: trimmed || undefined },+ next[altDialogIndex.value] = {+ ...next[altDialogIndex.value],+ meta: { ...(next[altDialogIndex.value].meta ?? {}), alt_text: trimmed || undefined },};media.value = next;};--const onAltTextSave = (value: string): void => {- if (altDialogIndex.value === null) return;- setAltText(altDialogIndex.value, value);-};</script><template>