From f6892b88d6942a4e0a8a51d5b4310bc63d35d12d Mon Sep 17 00:00:00 2001
From: ilya <ilya@laptop.(none)>
Date: Wed, 18 Aug 2010 17:50:13 -0700
Subject: [PATCH] photo.remote_photo is relative

---
 app/models/photo.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/models/photo.rb b/app/models/photo.rb
index d982f92b98..68a138531e 100644
--- a/app/models/photo.rb
+++ b/app/models/photo.rb
@@ -38,7 +38,7 @@ class Photo < Post
   end
   
   def remote_photo
-    url
+    image.url.nil? ? (remote_photo_path +  remote_photo_name) : image.url
   end
 
   def remote_photo= remote_path
-- 
GitLab