mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 14:23:09 +02:00
Fix bug
This commit is contained in:
parent
08da258b63
commit
a231f8d26c
1 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
||||||
<div class="stream" v-if="!fetching && images.length > 0">
|
<div class="stream" v-if="!fetching && images.length > 0">
|
||||||
<a v-for="(image, i) in images" :key="i"
|
<a v-for="(image, i) in images" :key="i"
|
||||||
class="img"
|
class="img"
|
||||||
:style="`background-image: url(${thumbnail(image.media)})`"
|
:style="`background-image: url(${thumbnail(image.file)})`"
|
||||||
:href="image.note | notePage"
|
:href="image.note | notePage"
|
||||||
></a>
|
></a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -40,11 +40,11 @@ export default Vue.extend({
|
||||||
untilDate: new Date().getTime() + 1000 * 86400 * 365
|
untilDate: new Date().getTime() + 1000 * 86400 * 365
|
||||||
}).then(notes => {
|
}).then(notes => {
|
||||||
for (const note of notes) {
|
for (const note of notes) {
|
||||||
for (const media of note.media) {
|
for (const file of note.files) {
|
||||||
if (this.images.length < 9) {
|
if (this.images.length < 9) {
|
||||||
this.images.push({
|
this.images.push({
|
||||||
note,
|
note,
|
||||||
media
|
file
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue