mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +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:
parent
3af442e4ac
commit
b51ae8f32d
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
))
|
||||
|
|
Loading…
Reference in a new issue