1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

Missing verb in StoryPhriction renderText

Test Plan: Get feed.query with a Phriction story

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4417
This commit is contained in:
John Watson 2013-01-13 12:50:04 -08:00 committed by epriestley
parent 38626dce64
commit d67b42dcc0
2 changed files with 5 additions and 1 deletions

View file

@ -22,7 +22,7 @@ final class ConduitAPI_feed_query_Method extends ConduitAPIMethod {
'filterPHIDs' => 'optional list <phid>',
'limit' => 'optional int (default '.$this->getDefaultLimit().')',
'after' => 'optional int',
'view' => 'optional string (data, html, html-summary)',
'view' => 'optional string (data, html, html-summary, text)',
);
}
@ -31,6 +31,7 @@ final class ConduitAPI_feed_query_Method extends ConduitAPIMethod {
'html' => 'Full HTML presentation of story',
'data' => 'Dictionary with various data of the story',
'html-summary' => 'Story contains only the title of the story',
'text' => 'Simple one-line plain text representation of story',
);
}

View file

@ -51,6 +51,9 @@ final class PhabricatorFeedStoryPhriction extends PhabricatorFeedStory {
$document_title = $document_handle->getLinkName();
$document_uri = PhabricatorEnv::getURI($document_handle->getURI());
$action = $this->getValue('action');
$verb = PhrictionActionConstants::getActionPastTenseVerb($action);
$text = "{$author_name} {$verb} the document".
"{$document_title} {$document_uri}";