Fix specification of ttl.relative via LFS
Summary: Fixes T12828. This API was tightened up D17616, but I missed this callsite. Test Plan: I've just got a good feeling in my bones. Reviewers: chad Reviewed By: chad Maniphest Tasks: T12828 Differential Revision: https://secure.phabricator.com/D18119
This commit is contained in:
@@ -208,11 +208,17 @@ abstract class PhabricatorFileUploadSource
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function getNewFileParameters() {
|
private function getNewFileParameters() {
|
||||||
return array(
|
$parameters = array(
|
||||||
'name' => $this->getName(),
|
'name' => $this->getName(),
|
||||||
'ttl.relative' => $this->getRelativeTTL(),
|
|
||||||
'viewPolicy' => $this->getViewPolicy(),
|
'viewPolicy' => $this->getViewPolicy(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$ttl = $this->getRelativeTTL();
|
||||||
|
if ($ttl !== null) {
|
||||||
|
$parameters['ttl.relative'] = $ttl;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $parameters;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getChunkEngine() {
|
private function getChunkEngine() {
|
||||||
|
|||||||
Reference in New Issue
Block a user