Browse Source

front-end check for author

pull/82/head
Aaron Parecki 7 years ago
parent
commit
e7fe68f73e
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      views/new-post.php

+ 5
- 3
views/new-post.php View File

@ -357,9 +357,11 @@ $(function(){
} else {
$(".reply-context .post-name").addClass('hidden');
}
$(".reply-context .author .name").text(data.entry.author.name);
$(".reply-context .author .url").text(data.entry.author.url);
$(".reply-context img.author-img").attr('src', data.entry.author.photo);
if(data.entry.author) {
$(".reply-context .author .name").text(data.entry.author.name);
$(".reply-context .author .url").text(data.entry.author.url);
$(".reply-context img.author-img").attr('src', data.entry.author.photo);
}
if(data.entry.photo) {
$(".reply-context img.post-img").attr('src', data.entry.photo[0]).removeClass('hidden');
} else {

Loading…
Cancel
Save