mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-08 22:01:03 +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:
parent
38626dce64
commit
d67b42dcc0
2 changed files with 5 additions and 1 deletions
|
@ -22,7 +22,7 @@ final class ConduitAPI_feed_query_Method extends ConduitAPIMethod {
|
||||||
'filterPHIDs' => 'optional list <phid>',
|
'filterPHIDs' => 'optional list <phid>',
|
||||||
'limit' => 'optional int (default '.$this->getDefaultLimit().')',
|
'limit' => 'optional int (default '.$this->getDefaultLimit().')',
|
||||||
'after' => 'optional int',
|
'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',
|
'html' => 'Full HTML presentation of story',
|
||||||
'data' => 'Dictionary with various data of the story',
|
'data' => 'Dictionary with various data of the story',
|
||||||
'html-summary' => 'Story contains only the title of the story',
|
'html-summary' => 'Story contains only the title of the story',
|
||||||
|
'text' => 'Simple one-line plain text representation of story',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,9 @@ final class PhabricatorFeedStoryPhriction extends PhabricatorFeedStory {
|
||||||
$document_title = $document_handle->getLinkName();
|
$document_title = $document_handle->getLinkName();
|
||||||
$document_uri = PhabricatorEnv::getURI($document_handle->getURI());
|
$document_uri = PhabricatorEnv::getURI($document_handle->getURI());
|
||||||
|
|
||||||
|
$action = $this->getValue('action');
|
||||||
|
$verb = PhrictionActionConstants::getActionPastTenseVerb($action);
|
||||||
|
|
||||||
$text = "{$author_name} {$verb} the document".
|
$text = "{$author_name} {$verb} the document".
|
||||||
"{$document_title} {$document_uri}";
|
"{$document_title} {$document_uri}";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue