# Author fields for posts and comments

**URL:** <https://www.ruby-forum.com/t/author-fields-for-posts-and-comments/167369>\
**Category:** Typo\
**Created:** [May 7, 2009, 4:51am UTC](https://www.ruby-forum.com/t/author-fields-for-posts-and-comments/167369 "2009-05-07T04:51:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erik\_Ostrom](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/d26b3c/32.png) [@Erik\_Ostrom](https://www.ruby-forum.com/u/Erik_Ostrom)\
**Post date:** [May 7, 2009, 4:51am UTC](https://www.ruby-forum.com/t/author-fields-for-posts-and-comments/167369/1 "2009-05-07T04:51:22Z")

</div>

I’m trying to write some basic specs for the WordPress converter.

Writing specs to ensure authorship is converted correctly for both posts  
and  
comments, I found something odd:

- When you write a post, Content.author is set to User.login.
- When you write a comment, Feedback.author is set to User.name.

Is there a reason the two author attributes are set from different  
attributes on User? My specs currently maintain this behavior, but they  
shouldn’t if it’s just an accident.

Thanks  
–Erik Ostrom  
removed\_email\_address@domain.invalid
