mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update Profile component, fixes #1217
This commit is contained in:
parent
06e46f46af
commit
ef565bd7ff
1 changed files with 2 additions and 2 deletions
|
@ -358,7 +358,7 @@
|
|||
<div class="card-columns" v-if="mode == 'grid'">
|
||||
<div class="p-sm-2 p-md-3" v-for="(s, index) in timeline">
|
||||
<a class="card info-overlay card-md-border-0" :href="s.url">
|
||||
<img :src="s.media_attachments[0].url" class="img-fluid">
|
||||
<img :src="previewUrl(s)" class="img-fluid">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -612,7 +612,7 @@ export default {
|
|||
},
|
||||
|
||||
previewUrl(status) {
|
||||
return status.media_attachments[0].preview_url;
|
||||
return status.sensitive ? '/storage/no-preview.png?v=' + new Date().getTime() : status.media_attachments[0].preview_url;
|
||||
},
|
||||
|
||||
previewBackground(status) {
|
||||
|
|
Loading…
Reference in a new issue