Fixing photo page replies and descriptions

This commit is contained in:
Max Shinn 2010-12-27 16:39:21 -06:00
parent 98cb4a4e54
commit a6bf28f3ee
2 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ class PhotoAction extends Action
$this->user = Profile::staticGet('id', $this->notice->profile_id);
$notices = Notice::conversationStream((int)$this->photoid-1, null, null); //Why do I have to do -1?
$notices = Notice::conversationStream((int)$this->notice->conversation, null, null); //Why do I have to do -1?
$this->conversation = new ConversationTree($notices, $this);
return true;

View File

@ -75,7 +75,7 @@ class GNUsocialPhoto extends Memcached_DataObject
'uri' => DB_DATAOBJECT_STR + DB_DATAOBJECT_NOTNULL,
'thumb_uri' => DB_DATAOBJECT_STR + DB_DATAOBJECT_NOTNULL,
'title' => DB_DATAOBJECT_STR + DB_DATAOBJECT_NOTNULL,
'photo_description' => DB_DATAOBJECT_TXT + DB_DATAOBJECT_NOTNULL);
'photo_description' => DB_DATAOBJECT_STR + DB_DATAOBJECT_NOTNULL);
}
function keys()
@ -100,7 +100,7 @@ class GNUsocialPhoto extends Memcached_DataObject
$photo->uri = $uri;
$photo->album_id = $album_id;
if(!empty($title)) $photo->title = $title;
if(!empty($photo_description)) $photo->photo_description = $photo_description;
if(!empty($photo_description)) $photo->photo_description = (string)$photo_description;
if($insert_now) {
$notice = Notice::saveNew($profile_id, $uri, $source);