Changeset 1236

Show
Ignore:
Timestamp:
08/08/06 15:35:39
Author:
miyagawa
Message:

more fix to Publish::Feed to deal with atom:author

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Publish/Feed.pm

    r1219 r1236  
    5252    $feed->generator("Plagger/$Plagger::VERSION"); 
    5353    $feed->description($f->description || ''); 
     54    $feed->author($f->author) if $f->primary_author; 
    5455 
    5556    if ($feed_format eq 'Atom') { 
     
    8182            $author .= ' (' . $e->author . ')' if $e->author; 
    8283            $entry->author($author); 
    83         } elsif ($e->author) { 
    84             $entry->author($e->author); 
     84        } else { 
     85            unless ($feed->author) { 
     86                $entry->author($e->author || 'nobody'); 
     87            } 
    8588        } 
    8689