]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Got author to appear properly in the feed for photos.
authorIan Denhardt <ian@zenhack.net>
Wed, 11 Aug 2010 15:08:08 +0000 (11:08 -0400)
committerIan Denhardt <ian@zenhack.net>
Wed, 11 Aug 2010 15:08:08 +0000 (11:08 -0400)
plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php

index 46c67d5d9604bf0954937c1fa3e61612af003b21..a18d039e41f7aae4112b563f80a589e41a392060 100644 (file)
@@ -85,18 +85,18 @@ class GNUsocialPhotosPlugin extends Plugin
 
     function onStartShowNoticeItem($action)
     {
-        common_log(LOG_INFO, 'StartShowNoticeItem: ' . $action->notice->id);
         $photo = GNUsocialPhoto::staticGet('notice_id', $action->notice->id);
         if($photo) { 
-            common_log(LOG_INFO, 'is 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->elementEnd('a');
+            $action->out->elementEnd('div');
             $action->showNoticeInfo();
             $action->showNoticeOptions();
             return false;
         }
-        common_log(LOG_INFO, 'not photo');
         return true;
     }
 }