forked from GNUsocial/gnu-social
handle missing profile for notices better in Rss10Action
This commit is contained in:
parent
d706a3e21b
commit
1044f27e47
@ -178,7 +178,13 @@ class Rss10Action extends Action
|
||||
|
||||
if (count($this->notices)) {
|
||||
foreach ($this->notices as $n) {
|
||||
try {
|
||||
$this->showItem($n);
|
||||
} catch (Exception $e) {
|
||||
// log exceptions and continue
|
||||
common_log(LOG_ERR, $e->getMessage());
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -232,7 +238,7 @@ class Rss10Action extends Action
|
||||
|
||||
function showItem($notice)
|
||||
{
|
||||
$profile = Profile::staticGet($notice->profile_id);
|
||||
$profile = $notice->getProfile();
|
||||
$nurl = common_local_url('shownotice', array('notice' => $notice->id));
|
||||
$creator_uri = common_profile_uri($profile);
|
||||
$this->elementStart('item', array('rdf:about' => $notice->uri,
|
||||
|
Loading…
Reference in New Issue
Block a user