summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Denhardt <ian@zenhack.net>2010-08-11 11:08:08 -0400
committerIan Denhardt <ian@zenhack.net>2010-08-11 11:08:08 -0400
commitc6c08d8969bca35be8ddd8bcf55841e3d5d8a2a0 (patch)
tree33b41e87010817d665fc21f1fd3d508b4f008492
parentb88ce6205241731703ebda1cee7e4ac6128d058e (diff)
Got author to appear properly in the feed for photos.
-rw-r--r--plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php b/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php
index 46c67d5d9..a18d039e4 100644
--- a/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php
+++ b/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php
@@ -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;
}
}