Browse Source

front-end check for author

pull/82/head
Aaron Parecki 8 years ago
parent
commit
e7fe68f73e
No known key found for this signature in database GPG Key ID: 276C2817346D6056
  1. 2
      views/new-post.php

2
views/new-post.php

@ -357,9 +357,11 @@ $(function(){
} else {
$(".reply-context .post-name").addClass('hidden');
}
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