#1046 Take the first enclosure of type 'image/jpg' to use as thumbnail
Merged by bcotton. Opened by vinaydeshmukh.
vinaydeshmukh/fedora-websites mag1045  into  master

Download 1046.patch

for start.fedoraprojectorg

This commit iterates over the enclosure tags of each article, and uses
the first one whose type attribute is 'image/jpg'.
In the case no enclosure with this criteria is found, it will use the
last enclosure in the list.

Fixes issue #1045

I tested this and can verify it works to solve the issue with broken image links from the magazine feed. Thanks @vinaydeshmukh for getting this done, you beat me to the solution!

@vinaydeshmukh I see you haven't completed the Fedora Project Contributor Agreement (FPCA). Would you mind doing that before I merge this? See the wiki for more information.

Metadata Update from @bcotton:
- Pull-request tagged with: start.fp.o

Metadata Update from @bcotton:
- Request assigned

@bcotton No, not at all. I've completed the FCPA now.

@jakfrost :D

@vinaydeshmukh :tada: merging!

Pull-Request has been merged by bcotton

Metadata