diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html
index 78f770be23..2c8661010a 100644
--- a/phpBB/docs/CHANGELOG.html
+++ b/phpBB/docs/CHANGELOG.html
@@ -95,6 +95,7 @@
[Fix] Correctly set last modified headers. (Bug #54245, thanks Paul.J.Murphy)
[Fix] Show correct HTML title when reporting private messages. (Bug #54375)
[Fix] Correctly exclude subforums from ATOM Feeds. (Bug #54285)
+ [Fix] Do not link to user profile in ATOM feed entry if post has been made by the guest user. (Bug #54275)
[Change] Send time of last item instead of current time in ATOM Feeds. (Bug #53305)
[Change] Use em dash instead of hyphen/minus as separator in ATOM Feeds item statistics. (Bug #53565)
diff --git a/phpBB/feed.php b/phpBB/feed.php
index a3f194ea33..767922676f 100644
--- a/phpBB/feed.php
+++ b/phpBB/feed.php
@@ -812,7 +812,7 @@ class phpbb_feed
{
global $user;
- $user_link = '' . $row['username'] . '';
+ $user_link = ($row['user_id'] != ANONYMOUS) ? '' . $row['username'] . '' : $row['username'];
$time = ($this->topic_id) ? $row['post_time'] : $row['topic_time'];
@@ -965,7 +965,7 @@ class phpbb_feed_news extends phpbb_feed
{
global $user;
- $user_link = '' . $row[$this->get('creator')] . '';
+ $user_link = ($row[$this->get('author_id')] != ANONYMOUS) ? '' . $row[$this->get('creator')] . '' : $row[$this->get('creator')];
$item_row['statistics'] = $user->lang['POSTED'] . ' ' . $user->lang['POST_BY_AUTHOR'] . ' ' . $user_link
. ' ' . $this->separator_stats . ' ' . $user->format_date($row['topic_time'])
@@ -1066,7 +1066,7 @@ class phpbb_feed_topics extends phpbb_feed
{
global $user;
- $user_link = '' . $row[$this->get('creator')] . '';
+ $user_link = ($row[$this->get('author_id')] != ANONYMOUS) ? '' . $row[$this->get('creator')] . '' : $row[$this->get('creator')];
$item_row['statistics'] = $user->lang['POSTED'] . ' ' . $user->lang['POST_BY_AUTHOR'] . ' ' . $user_link
. ' ' . $this->separator_stats . ' ' . $user->format_date($row['topic_time'])