mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Merge branch 'master' into ios8
* master: Take out iframes from notification emails. Vimeo has no easy way to sub in a thumbnail.
This commit is contained in:
commit
c06993920d
1 changed files with 2 additions and 0 deletions
|
@ -295,6 +295,8 @@ class MUserFeedNotification(mongo.Document):
|
|||
img = Tag(soup, 'img', [('style', "display: block; 'background-image': \"url(https://%s/img/reader/youtube_play.png), url(http://img.youtube.com/vi/%s/0.jpg)\"" % (fqdn, youtube_id)), ('src', 'http://img.youtube.com/vi/%s/0.jpg' % youtube_id)])
|
||||
a.insert(0, img)
|
||||
iframe.replaceWith(a)
|
||||
else:
|
||||
iframe.extract()
|
||||
|
||||
return unicode(soup)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue