Skip to content

Commit

Permalink
use modifiedAt instead of current time
Browse files Browse the repository at this point in the history
  • Loading branch information
Monirzadeh committed Jun 26, 2024
1 parent b49f4b9 commit c91ce2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/view/assets/js/component/bookmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export default {
hasContent: Boolean,
hasArchive: Boolean,
hasEbook: Boolean,
modifiedAt: String,
index: Number,
ShowId: Boolean,
editMode: Boolean,
Expand Down Expand Up @@ -94,9 +95,8 @@ export default {
return this.excerpt !== "" && !this.thumbnailVisible && !this.HideExcerpt;
},
thumbnailStyleURL() {
var cacheBuster = new Date().getTime();
return {
backgroundImage: `url("${this.imageURL}?cache=${cacheBuster}")`,
backgroundImage: `url("${this.imageURL}?cache=${this.modifiedAt}")`,
};
},
eventItem() {
Expand Down
1 change: 1 addition & 0 deletions internal/view/assets/js/page/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ var template = `
:excerpt="book.excerpt"
:public="book.public"
:imageURL="book.imageURL"
:modifiedAt="book.modifiedAt"
:hasContent="book.hasContent"
:hasArchive="book.hasArchive"
:hasEbook="book.hasEbook"
Expand Down

0 comments on commit c91ce2c

Please sign in to comment.