composemodal: do not display 1970 publication date for draft collections

pull/6017/head
nicole mikołajczyk 6 months ago committed by GitHub
parent ccc70240df
commit 5a73b8bbfc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -681,7 +681,12 @@
<img :src="collection.thumb" class="mr-3" alt="" width="50px" height="50px">
<div class="media-body">
<h5 class="mt-0">{{ collection.title }}</h5>
<p class="mb-0 text-muted small">{{ collection.post_count }} Posts - Created {{ timeAgo(collection.published_at) }} ago</p>
<p class="mb-0 text-muted small">
<span>{{ collection.post_count }} Posts
<span>&middot;</span>
<span v-if="collection.visibility === 'draft'" class="primary"><i class="far fa-lock fa-sm"></i> {{ $t("profile.draft")}}</span>
<span v-else>Created {{ timeago(collection.published_at) }} ago</span>
</p>
</div>
</div>
</div>

Loading…
Cancel
Save