don't show uploader name in RSS feed, halve the number of queries

This commit is contained in:
Shish 2019-05-26 10:37:26 +01:00
parent 3d326344a9
commit 6175b36cc9

View file

@ -91,14 +91,12 @@ class RSS_Images extends Extension {
$link = make_http(make_link("post/view/{$image->id}"));
$tags = html_escape($image->get_tag_list());
$owner = $image->get_owner();
$thumb_url = $image->get_thumb_link();
$image_url = $image->get_image_link();
$posted = date(DATE_RSS, strtotime($image->posted));
$content = html_escape(
"<div>" .
"<p>" . $this->theme->build_thumb_html($image) . "</p>" .
"<p>Uploaded by " . html_escape($owner->name) . "</p>" .
"</div>"
);