Skip to content

Commit

Permalink
Fixed YouTube stream.
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelindustry committed Jun 8, 2015
1 parent 7675a81 commit 7ca2ef8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ $('.newsfeed').socialstream({
<p>v1.3</p>
<pre>
- Fixed Youtube stream - switched to API v3.
- Fixed issue with Smiley icons on DeviantArt stream.
</pre>


Expand Down
6 changes: 6 additions & 0 deletions socialstream.jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,12 @@
$container.append(entry.content);
var url = entry.link;
var photo_url = $container.find('img').attr('src');

// ignore smiley images
if (photo_url.indexOf("smile.gif") >= 0){
continue;
}

var photo_title = entry.title;
if (options.overlay) {
var overlay_div = '<div class="img-overlay"></div>';
Expand Down

0 comments on commit 7ca2ef8

Please sign in to comment.