]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Got photos displaying in the feed *the right way*
authorIan Denhardt <ian@zenhack.net>
Sat, 4 Sep 2010 03:00:34 +0000 (23:00 -0400)
committerIan Denhardt <ian@zenhack.net>
Sat, 4 Sep 2010 03:00:34 +0000 (23:00 -0400)
plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php

index 2a98a35d29c11499a3099d44b65b9a3f2d012f2e..79da703210ba4238318a4a389578d4e39b43c1ab 100644 (file)
@@ -121,15 +121,15 @@ class GNUsocialPhotosPlugin extends Plugin
         return true;
     }
 
-/*
+
     function onStartShowNoticeItem($action)
     {
         $photo = GNUsocialPhoto::staticGet('notice_id', $action->notice->id);
         if($photo) { 
             $action->out->elementStart('div', 'entry-title');
             $action->showAuthor();
-            $action->out->elementStart('a', array('href' => 'http://' . common_config('site', 'server') . $photo->path));
-            $action->out->element('img', array('src' => 'http://' . common_config('site', 'server') . $photo->thumb_path));
+            $action->out->elementStart('a', array('href' => $photo->uri));
+            $action->out->element('img', array('src' => $photo->thumb_uri));
             $action->out->elementEnd('a');
             $action->out->elementEnd('div');
             $action->showNoticeInfo();
@@ -137,5 +137,5 @@ class GNUsocialPhotosPlugin extends Plugin
             return false;
         }
         return true;
-    } */
+    } 
 }