Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonne Haß <me@mrzyx.de>2012-09-20 19:58:42 +0400
committerJonne Haß <me@mrzyx.de>2012-09-26 22:19:37 +0400
commit89c1fd5f7f8243b62b1ac11baf73f280fcb7d663 (patch)
tree17efcc5762cc69c0d91d73d783a6835c59d20f6f /app/models/photo.rb
parent2a4db54db97e259de4711d3e25326ee1a4822727 (diff)
query the set url only through #pod_uri in the app
Diffstat (limited to 'app/models/photo.rb')
-rw-r--r--app/models/photo.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/models/photo.rb b/app/models/photo.rb
index 5e80ea1ba..ce666b5d1 100644
--- a/app/models/photo.rb
+++ b/app/models/photo.rb
@@ -99,9 +99,7 @@ class Photo < ActiveRecord::Base
def update_remote_path
unless self.unprocessed_image.url.match(/^https?:\/\//)
- pod_url = AppConfig.environment.url.get.dup
- pod_url.chop! if pod_url[-1,1] == '/'
- remote_path = "#{pod_url}#{self.unprocessed_image.url}"
+ remote_path = "#{AppConfig.pod_uri.to_s.chomp("/")}#{self.unprocessed_image.url}"
else
remote_path = self.unprocessed_image.url
end