Avoid having to check for notices without rendered copies in upgrade.php

Always call the Notice->getRendered() function to get a rendered copy.
We could perhaps put some sanitation there too in the future
This commit is contained in:
Mikael Nordfeldth
2016-01-06 15:32:00 +01:00
parent d6ac002639
commit b596391fcd
18 changed files with 32 additions and 45 deletions

View File

@@ -388,7 +388,7 @@ function linkback_save($source, $target, $response, $notice_or_user) {
// notice's nickname and %3$s is the content of the favorited notice.)
$act->content = sprintf(_('%1$s favorited something by %2$s: %3$s'),
$profile->getNickname(), $notice_or_user->getProfile()->getNickname(),
$notice_or_user->rendered ?: $notice_or_user->content);
$notice_or_user->getRendered());
if($entry['rsvp']) {
$act->content = $options['rendered'];
}