Differential D20669 Diff 49296 src/applications/files/action/PhabricatorFilesOutboundRequestAction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/action/PhabricatorFilesOutboundRequestAction.php
| <?php | <?php | ||||
| final class PhabricatorFilesOutboundRequestAction | final class PhabricatorFilesOutboundRequestAction | ||||
| extends PhabricatorSystemAction { | extends PhabricatorSystemAction { | ||||
| const TYPECONST = 'files.outbound'; | const TYPECONST = 'files.outbound'; | ||||
| public function getActionConstant() { | |||||
| return self::TYPECONST; | |||||
| } | |||||
| public function getScoreThreshold() { | public function getScoreThreshold() { | ||||
| return 60 / phutil_units('1 hour in seconds'); | return 60 / phutil_units('1 hour in seconds'); | ||||
| } | } | ||||
| public function getLimitExplanation() { | public function getLimitExplanation() { | ||||
| return pht( | return pht( | ||||
| 'You have initiated too many outbound requests to fetch remote URIs '. | 'You have initiated too many outbound requests to fetch remote URIs '. | ||||
| 'recently.'); | 'recently.'); | ||||
| } | } | ||||
| } | } | ||||