Skip to content

Commit

Permalink
Remove post previews
Browse files Browse the repository at this point in the history
The way they work is incompatible with the Mastodon API.
  • Loading branch information
TheEssem committed Jan 21, 2024
1 parent 1605035 commit 17fd7e2
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions src/components/post_status_form/post_status_form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,50 +73,6 @@
<p>{{ $t('post_status.edit_remote_warning') }}</p>
<p>{{ $t('post_status.edit_unsupported_warning') }}</p>
</div>
<div
v-if="!disablePreview"
class="preview-heading faint"
>
<a
class="preview-toggle faint"
@click.stop.prevent="togglePreview"
>
{{ $t('post_status.preview') }}
<FAIcon :icon="showPreview ? 'chevron-left' : 'chevron-right'" />
</a>
<div
v-show="previewLoading"
class="preview-spinner"
>
<FAIcon
class="fa-old-padding"
spin
icon="circle-notch"
/>
</div>
</div>
<div
v-if="showPreview"
class="preview-container"
>
<div
v-if="!preview"
class="preview-status"
>
{{ $t('general.loading') }}
</div>
<div
v-else-if="preview.error"
class="preview-status preview-error"
>
{{ preview.error }}
</div>
<StatusContent
v-else
:status="preview"
class="preview-status"
/>
</div>
<EmojiInput
ref="subject-emoji-input"
v-if="subjectVisible"
Expand Down

0 comments on commit 17fd7e2

Please sign in to comment.