[wp-trac] [WordPress Trac] #22981: Tweets import plugin tracking ticket

WordPress Trac noreply at wordpress.org
Thu Jan 3 19:45:22 UTC 2013


#22981: Tweets import plugin tracking ticket
----------------------------+----------------------------
 Reporter:  nacin           |       Owner:  PeteMall
     Type:  task (blessed)  |      Status:  accepted
 Priority:  high            |   Milestone:  WordPress.org
Component:  Plugins         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+----------------------------

Comment (by aaroncampbell):

 Replying to [comment:18 MikeSchinkel]:
 > Instead of posts could we instead **consider using comments for
 tweets?**  Comments model tweets better than posts, and comments already
 have meta so they can be extended by plugins and themes as needed.

 I definitely don't agree with this one.  I understand that you'd prefer to
 keep your posts table cleaner (and apparently don't care about your
 comments table), but I '''definitely''' think that tweets are better
 modeled as a post with the format `status` than by anything else offered
 by default in WordPress (with a post with the format of `aside` being a
 close second).

 If you were importing tweet threads instead of a user's timeline, then I
 could see how the back/forth makes sense as comments (with the original
 Tweet still being a status post), but when you're importing a timeline I
 definitely think posts are the way to go.

 How's this as a potential solution: We still need to add checks to keep
 from re-importing Tweets if a user requests another export a month later
 and imports it.  If we do that by using a filter that we hook into, you
 could use it to short-circuit the post creation:
 {{{
 if ( ! apply_filters( 'twitter-import-tweet-exists', false, $tweet ) ) {
         // Create post here
 }
 }}}

 You could use that filter to insert the comment you want and return true.
 I haven't completely thought through it all, but it seems like something
 like that would work.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22981#comment:19>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list