@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class PhabricatorFilesOutboundRequestAction
4 extends PhabricatorSystemAction {
5
6 const TYPECONST = 'files.outbound';
7
8 public function getScoreThreshold() {
9 return 60 / phutil_units('1 hour in seconds');
10 }
11
12 public function getLimitExplanation() {
13 return pht(
14 'You have initiated too many outbound requests to fetch remote URIs '.
15 'recently.');
16 }
17
18}