Skip to content

Commit

Permalink
fixed rss author, empty notice-uri
Browse files Browse the repository at this point in the history
  • Loading branch information
voitto committed Sep 9, 2008
1 parent 30733ed commit ef95017
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/plugins/omb.php
Expand Up @@ -245,7 +245,7 @@ function wp_set_post_fields_after( &$model, &$rec ) {
$rec->set_value( 'uri', $request->url_for( array(
'resource'=>'__'.$rec->id,
)));
$rec->save_changes;
$rec->save_changes();
}
}

Expand Down
9 changes: 8 additions & 1 deletion app/plugins/omb_notice.php
Expand Up @@ -4,11 +4,18 @@

function broadcast_omb_notice( &$model, &$rec ) {

if (!(isset($rec->title)))
if (!(isset($rec->title)) || !(isset($rec->uri)))
return;

global $request, $db;

if (empty($rec->uri)) {
$rec->set_value( 'uri', $request->url_for( array(
'resource'=>'__'.$rec->id,
)));
$rec->save_changes();
}

wp_plugin_include(array(
'wp-oauth'
));
Expand Down
2 changes: 1 addition & 1 deletion app/views/_index.rss
Expand Up @@ -19,7 +19,7 @@
<item rdf:about="<?php url_for( array( 'resource'=>$collection->resource, 'id'=>$Member->id )); ?>">
<title><?php print $Member->title; ?></title>
<link><?php url_for( array( 'resource'=>$collection->resource, 'id'=>$Member->id )); ?></link>
<description><?php print $profile->fullname; ?>'s status on <?php print time_of($Member->created); ?></description>
<description><?php print $profile->nickname; ?>'s status on <?php print time_of($Member->created); ?></description>
<dc:date><?php print time_3339($Member->created); ?></dc:date>
<dc:creator><?php print $profile->fullname; ?></dc:creator>
<cc:licence rdf:resource="<?php print $profile->license; ?>"></cc:licence>
Expand Down

0 comments on commit ef95017

Please sign in to comment.