Also hide attachments behind clickthrough.

This commit is contained in:
Vivian Lim 2018-06-28 20:29:39 -07:00 committed by Vivian Lim
parent 65edcaf4b9
commit ab86e87e85
1 changed files with 2 additions and 2 deletions

View File

@ -80,13 +80,13 @@
<button v-else @click.prevent="toggleContentWarningContent">Show</button>
</div>
<div v-if="showingContentWarningContent" v-html="status.content" class="contentWarnedContent"></div>
<div v-else class="hiddenContent" @click.prevent="toggleContentWarningContent">Click to view this post.</div>
<div v-else class="hiddenContent" @click.prevent="toggleContentWarningContent">Click to view this post.<span v-if="status.attachments && status.attachments.length > 0"> (has attachments)</span></div>
</div>
<div v-else @click.prevent="linkClicked" class="status-content media-body" v-html="status.statusnet_html"></div>
<a v-if="showingTall" href="#" class="tall-status-unhider" @click.prevent="toggleShowTall">Show less</a>
</div>
<div v-if='status.attachments' class='attachments media-body'>
<div v-if='status.attachments && (!status.summary || showingContentWarningContent)' class='attachments media-body'>
<attachment :size="attachmentSize" :status-id="status.id" :nsfw="status.nsfw" :attachment="attachment" v-for="attachment in status.attachments" :key="attachment.id">
</attachment>
</div>