From: Ian Denhardt Date: Sat, 4 Sep 2010 03:00:34 +0000 (-0400) Subject: Got photos displaying in the feed *the right way* X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3da5dccce6cd35e58f8ee71251578c23f6839acb;p=quix0rs-gnu-social.git Got photos displaying in the feed *the right way* --- diff --git a/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php b/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php index 2a98a35d29..79da703210 100644 --- a/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php +++ b/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php @@ -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; - } */ + } }