Page MenuHomePhorge

D25462.1731646567.diff
No OneTemporary

D25462.1731646567.diff

diff --git a/src/applications/files/transform/PhabricatorFileImageTransform.php b/src/applications/files/transform/PhabricatorFileImageTransform.php
--- a/src/applications/files/transform/PhabricatorFileImageTransform.php
+++ b/src/applications/files/transform/PhabricatorFileImageTransform.php
@@ -137,8 +137,12 @@
protected function newFileFromData($data) {
if ($this->file) {
$name = $this->file->getName();
+ $inherit_properties = array(
+ 'viewPolicy' => $this->file->getViewPolicy(),
+ );
} else {
$name = 'default.png';
+ $inherit_properties = array();
}
$defaults = array(
@@ -146,7 +150,7 @@
'name' => $this->getTransformKey().'-'.$name,
);
- $properties = $this->getFileProperties() + $defaults;
+ $properties = $this->getFileProperties() + $inherit_properties + $defaults;
return PhabricatorFile::newFromFileData($data, $properties);
}
diff --git a/src/applications/files/transform/PhabricatorFileThumbnailTransform.php b/src/applications/files/transform/PhabricatorFileThumbnailTransform.php
--- a/src/applications/files/transform/PhabricatorFileThumbnailTransform.php
+++ b/src/applications/files/transform/PhabricatorFileThumbnailTransform.php
@@ -58,7 +58,7 @@
public function generateTransforms() {
return array(
id(new PhabricatorFileThumbnailTransform())
- ->setName(pht("Profile (400px \xC3\x97 400px)"))
+ ->setName(pht("Profile (400px \xC3\x97 400px) (Image will be Public)"))
->setKey(self::TRANSFORM_PROFILE)
->setDimensions(400, 400)
->setScaleUp(true),

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 15, 04:56 (11 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
971224
Default Alt Text
D25462.1731646567.diff (1 KB)

Event Timeline