diff --git a/components/publish/PublishAttachment.vue b/components/publish/PublishAttachment.vue index 89aea8e9..e70ffe9c 100644 --- a/components/publish/PublishAttachment.vue +++ b/components/publish/PublishAttachment.vue @@ -15,6 +15,9 @@ const emit = defineEmits<{ (evt: 'setDescription', description: string): void }>() +// from https://github.com/mastodon/mastodon/blob/dfa984/app/models/media_attachment.rb#L40 +const maxDescriptionLength = 1500 + const isEditDialogOpen = ref(false) const description = ref(props.attachment.description ?? '') const toggleApply = () => { @@ -55,7 +58,10 @@ const toggleApply = () => {