Page MenuHomePhorge

D25891.1740211444.diff
No OneTemporary

D25891.1740211444.diff

diff --git a/src/applications/feed/query/PhabricatorFeedQuery.php b/src/applications/feed/query/PhabricatorFeedQuery.php
--- a/src/applications/feed/query/PhabricatorFeedQuery.php
+++ b/src/applications/feed/query/PhabricatorFeedQuery.php
@@ -18,7 +18,15 @@
return $this;
}
+ /**
+ * @param int|null $range_min Minimum epoch value of feed stories
+ * @param int|null $range_max Maximum epoch value of feed stories
+ */
public function withEpochInRange($range_min, $range_max) {
+ if ($range_min && $range_max && $range_min > $range_max) {
+ throw new PhutilArgumentUsageException(
+ pht('Feed query minimum range must be lower than maximum range.'));
+ }
$this->rangeMin = $range_min;
$this->rangeMax = $range_max;
return $this;

File Metadata

Mime Type
text/plain
Expires
Sat, Feb 22, 08:04 (3 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1181228
Default Alt Text
D25891.1740211444.diff (783 B)

Event Timeline