Fix a bug with featured image and duplicated posts

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jinho Jang 2020-09-05 10:57:46 +09:00 committed by Jakub Sokołowski
parent 0373d49188
commit f82ad8ae89
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 5 additions and 2 deletions

View File

@ -76,14 +76,14 @@ $(document).ready(function () {
var storedPosts = store.get('sn_posts'), var storedPosts = store.get('sn_posts'),
storedTemplate = store.get('sn_template'); storedTemplate = store.get('sn_template');
if(typeof storedPosts != 'undefined' && typeof storedTemplate != 'undefined'){ if(typeof storedPosts !== 'undefined' && typeof storedTemplate !== 'undefined'){
// Load posts and template from localstorage // Load posts and template from localstorage
for (const v of storedPosts) { for (const v of storedPosts) {
renderPost(v, storedTemplate); renderPost(v, storedTemplate);
} }
}else{ } else if (allPosts.length) {
var deferred, var deferred,
deferreds = []; deferreds = [];

View File

@ -805,6 +805,9 @@ a.active{
padding: 0; padding: 0;
margin: 0; margin: 0;
border: none; border: none;
img {
width: 100%;
}
.meta{ .meta{
display: flex; display: flex;
align-items: center; align-items: center;