1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 05:50:55 +01:00

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:
epriestley 2017-06-12 11:19:37 -07:00
parent 0610b86f57
commit 4b15871ced

View file

@ -208,11 +208,17 @@ abstract class PhabricatorFileUploadSource
}
private function getNewFileParameters() {
return array(
$parameters = array(
'name' => $this->getName(),
'ttl.relative' => $this->getRelativeTTL(),
'viewPolicy' => $this->getViewPolicy(),
);
$ttl = $this->getRelativeTTL();
if ($ttl !== null) {
$parameters['ttl.relative'] = $ttl;
}
return $parameters;
}
private function getChunkEngine() {