1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 23:02:42 +01:00

Phriction - fix edits with subscribers

Summary: pre-patch, these fatal, since we overwrite $content to be just a string so methods fail later in the code. Instead, write a $content_str to keep $content as the proper data.

Test Plan: editing a document and on save it showed me the view page! (as opposed to fataling and staying on the eidt page)

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D10426
This commit is contained in:
Bob Trahan 2014-09-05 10:48:23 -07:00
parent 3af442e4ac
commit b51ae8f32d

View file

@ -264,7 +264,7 @@ final class PhrictionDocumentEditor extends PhabricatorEditor {
}
if ($feed_action) {
$content = id(new PhutilUTF8StringTruncator())
$content_str = id(new PhutilUTF8StringTruncator())
->setMaximumGlyphs(140)
->truncateString($new_content->getContent());
id(new PhabricatorFeedStoryPublisher())
@ -276,7 +276,7 @@ final class PhrictionDocumentEditor extends PhabricatorEditor {
array(
'phid' => $document->getPHID(),
'action' => $feed_action,
'content' => $content,
'content' => $content_str,
'project' => $project_phid,
'movedFromPHID' => $this->fromDocumentPHID,
))