Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15353080
D18378.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D18378.diff
View Options
diff --git a/resources/chatbot/example_config.json b/resources/chatbot/example_config.json
deleted file mode 100644
--- a/resources/chatbot/example_config.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "server" : "irc.freenode.net",
- "port" : 6667,
- "nick" : "phabot",
- "join" : [
- "#phabot-test"
- ],
- "handlers" : [
- "PhabricatorBotObjectNameHandler",
- "PhabricatorBotSymbolHandler",
- "PhabricatorBotLogHandler",
- "PhabricatorBotFeedNotificationHandler",
- "PhabricatorBotWhatsNewHandler",
- "PhabricatorBotMacroHandler"
- ],
-
- "conduit.uri" : null,
- "conduit.token" : null,
-
- "macro.size" : 48,
- "macro.aspect" : 0.66,
-
- "notification.channels" : ["#phabot-test"]
-}
diff --git a/src/applications/files/storage/PhabricatorFile.php b/src/applications/files/storage/PhabricatorFile.php
--- a/src/applications/files/storage/PhabricatorFile.php
+++ b/src/applications/files/storage/PhabricatorFile.php
@@ -854,7 +854,7 @@
return $this->getTransformedURI($transform->getTransformKey());
}
- private function getTransformedURI($transform) {
+ private function getTransformedURI($transform, $cdn) {
$parts = array();
$parts[] = 'file';
$parts[] = 'xform';
@@ -871,7 +871,11 @@
$path = implode('/', $parts);
$path = $path.'/';
- return PhabricatorEnv::getCDNURI($path);
+ if ($cdn) {
+ return PhabricatorEnv::getCDNURI($path);
+ } else {
+ return PhabricatorEnv::getURI($path);
+ }
}
public function isViewableInBrowser() {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 11, 7:59 PM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7349747
Default Alt Text
D18378.diff (1 KB)
Attached To
Mode
D18378: Remove chatbot example configuration
Attached
Detach File
Event Timeline
Log In to Comment