1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-20 13:52:40 +01:00

Fix an issue where Ponder rename stories tried to render question bodies

Summary: Missing some `break;`, pretty sure this is causing the issue on `secure.phabricator.com`.

Test Plan: Will push.

Reviewers: chad, btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D7559
This commit is contained in:
epriestley 2013-11-11 11:17:06 -08:00
parent a29b5b070f
commit ae5fbe034e

View file

@ -258,13 +258,16 @@ final class PonderQuestionTransaction
return phutil_escape_html_newlines( return phutil_escape_html_newlines(
phutil_utf8_shorten($question->getContent(), 128)); phutil_utf8_shorten($question->getContent(), 128));
} }
break;
case self::TYPE_ANSWERS: case self::TYPE_ANSWERS:
$answer = $this->getNewAnswerObject($story); $answer = $this->getNewAnswerObject($story);
if ($answer) { if ($answer) {
return phutil_escape_html_newlines( return phutil_escape_html_newlines(
phutil_utf8_shorten($answer->getContent(), 128)); phutil_utf8_shorten($answer->getContent(), 128));
} }
break;
} }
return parent::getBodyForFeed($story); return parent::getBodyForFeed($story);
} }