Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix feed image #29237

Merged
merged 3 commits into from
Jun 15, 2020
Merged

Fix feed image #29237

merged 3 commits into from
Jun 15, 2020

Conversation

SharkyKZ
Copy link
Contributor

Once it reaches 4.0, this PR will solve #29236.

Summary of Changes

Fixes feed image display.

Testing Instructions

Create a feed module. Use a feed link containing an image, e.g. http://feeds.bbci.co.uk/news/world/europe/rss.xml.
View the module.

Expected result

Image is shown.

Actual result

Image not shown.

Documentation Changes Required

No.

@toivo
Copy link
Contributor

toivo commented May 27, 2020

I have tested this item ✅ successfully on 4de3ebb

Tested successfully in Joomla 3.9.19-dev Nightly Build of 27 May.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29237.

@conseilgouz
Copy link
Contributor

I have tested this item ✅ successfully on 4de3ebb

Tested this on Joomla 3.9.18


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29237.

@SharkyKZ
Copy link
Contributor Author

RTC.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29237.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label May 27, 2020
@wilsonge wilsonge merged commit f6ad8b0 into joomla:staging Jun 15, 2020
@wilsonge
Copy link
Contributor

Thanks!

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Jun 15, 2020
@wilsonge wilsonge added this to the Joomla! 3.9.20 milestone Jun 15, 2020
@wilsonge
Copy link
Contributor

My guess is that this stemmed from the fact this used to be included through CDATA tags https://stackoverflow.com/questions/483675/images-in-rss-feed - we maybe want to handle this case still in 3.x?

@SharkyKZ
Copy link
Contributor Author

@wilsonge I don't think that's related. This PR concerns main image of the channel, not images of entries. It's created here:

protected function handleImage(Feed $feed, \SimpleXMLElement $el)
{
// Create a feed link object for the image.
$image = new FeedLink(
(string) $el->url,
null,
'logo',
null,
(string) $el->title
);
// Populate extra fields if they exist.
$image->link = (string) $el->link;
$image->description = (string) $el->description;
$image->height = (string) $el->height;
$image->width = (string) $el->width;
$feed->image = $image;
}

@SharkyKZ SharkyKZ deleted the j3/bug/feed-image branch June 16, 2020 05:36
Reconix pushed a commit to Reconix/joomla-cms that referenced this pull request Aug 31, 2020
Reconix added a commit to Reconix/joomla-cms that referenced this pull request Aug 31, 2020
Reconix added a commit to Reconix/joomla-cms that referenced this pull request Aug 31, 2020
Reconix added a commit to Reconix/joomla-cms that referenced this pull request Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants