Skip to content

Commit

Permalink
All: Default properly to "Publish" for imported posts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Beau Lebens committed Aug 21, 2018
1 parent a8c0ea1 commit 80ce581
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion importers/keyring-importer-delicious.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function extract_posts_from_data( $raw ) {

// Other bits
$post_author = $this->get_option( 'author' );
$post_status = $this->get_option( 'status' );
$post_status = $this->get_option( 'status', 'publish' );
$delicious_id = (string) $post['hash'];
$delicious_raw = $post;

Expand Down
2 changes: 1 addition & 1 deletion importers/keyring-importer-fitbit.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function extract_posts_from_data( $raw ) {

// Other bits
$post_author = $this->get_option( 'author' );
$post_status = $this->get_option( 'status' );
$post_status = $this->get_option( 'status', 'publish' );
$fitbit_raw = $importdata; // Keep all of the things

// Build the post array, and hang onto it along with the others
Expand Down
2 changes: 1 addition & 1 deletion importers/keyring-importer-flickr.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function extract_posts_from_data( $raw ) {
$flickr_img = $post->url_o;
$flickr_url = "http://www.flickr.com/photos/{$post->owner}/{$post->id}/"; // Use 'owner' (user-id) because it always works
$post_author = $this->get_option( 'author' );
$post_status = $this->get_option( 'status' );
$post_status = $this->get_option( 'status', 'publish' );

// Lay out the post content, similar to Instagram importer
$post_content = '<p class="flickr-image">';
Expand Down
2 changes: 1 addition & 1 deletion importers/keyring-importer-foursquare.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ function extract_posts_from_data( $raw ) {

// Other bits
$post_author = $this->get_option( 'author' );
$post_status = $this->get_option( 'status' );
$post_status = $this->get_option( 'status', 'publish' );
$foursquare_id = $post->id;
$foursquare_raw = $post;

Expand Down
2 changes: 1 addition & 1 deletion importers/keyring-importer-instagram.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ function extract_posts_from_data( $raw ) {

// Other bits
$post_author = $this->get_option( 'author' );
$post_status = $this->get_option( 'status' );
$post_status = $this->get_option( 'status', 'publish' );
$instagram_id = $post->id;
$instagram_url = $post->link;
$instagram_img = $post->images->standard_resolution->url;
Expand Down
2 changes: 1 addition & 1 deletion importers/keyring-importer-instapaper.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function extract_posts_from_data( $raw ) {

// Other bits
$post_author = $this->get_option( 'author' );
$post_status = $this->get_option( 'status' );
$post_status = $this->get_option( 'status', 'publish' );
$instapaper_id = $post->bookmark_id;
$instapaper_raw = $post;

Expand Down
2 changes: 1 addition & 1 deletion importers/keyring-importer-jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ function extract_posts_from_data( $raw ) {

// Other bits
$post_author = $this->get_option( 'author' );
$post_status = $this->get_option( 'status' );
$post_status = $this->get_option( 'status', 'publish' );
$post_format = $post->format;
$jetpack_id = $post->global_ID;
$jetpack_raw = $post;
Expand Down
2 changes: 1 addition & 1 deletion importers/keyring-importer-moves.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ function extract_posts_from_data( $raw ) {

// Other bits
$post_author = $this->get_option( 'author' );
$post_status = $this->get_option( 'status' );
$post_status = $this->get_option( 'status', 'publish' );
$moves_raw = $importdata; // Keep all of the things

// Build the post array, and hang onto it along with the others
Expand Down
2 changes: 1 addition & 1 deletion importers/keyring-importer-nest-cam.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function extract_posts_from_data( $importdata ) {

// Other bits
$post_author = $this->get_option( 'author' );
$post_status = $this->get_option( 'status' );
$post_status = $this->get_option( 'status', 'publish' );
$nest_raw = $camera;

// Build the post array, and hang onto it along with the others
Expand Down
2 changes: 1 addition & 1 deletion importers/keyring-importer-pinterest.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function extract_posts_from_data( $importdata ) {

// Other bits
$post_author = $this->get_option( 'author' );
$post_status = $this->get_option( 'status' );
$post_status = $this->get_option( 'status', 'publish' );
$pinterest_id = $post->id;
$pinterest_url = $post->url;
$pinterest_img = $post->image->original->url;
Expand Down
2 changes: 1 addition & 1 deletion importers/keyring-importer-tripit.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ function extract_posts_from_data( $raw ) {

// Other bits
$post_author = $this->get_option( 'author' );
$post_status = $this->get_option( 'status' );
$post_status = $this->get_option( 'status', 'publish' );
$tripit_id = $trip->trip_id;
$tripit_segment_id = $segment->id;
} else {
Expand Down
2 changes: 1 addition & 1 deletion importers/keyring-importer-twitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ function extract_posts_from_data( $raw ) {
$in_reply_to_screen_name = $post->in_reply_to_screen_name;
$in_reply_to_status_id = $post->in_reply_to_status_id;
$post_author = $this->get_option( 'author' );
$post_status = $this->get_option( 'status' );
$post_status = $this->get_option( 'status', 'publish' );
$twitter_raw = $post;

// Build the post array, and hang onto it along with the others
Expand Down
2 changes: 1 addition & 1 deletion importers/keyring-importer-youtube.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function extract_posts_from_data( $raw ) {

// Other bits
$post_author = $this->get_option( 'author' );
$post_status = $this->get_option( 'status' );
$post_status = $this->get_option( 'status', 'publish' );
$youtube_id = $post->id->videoId;
$youtube_url = 'https://www.youtube.com/watch?v=' . $post->id->videoId; // Is this the canonical?
$youtube_raw = $post;
Expand Down

0 comments on commit 80ce581

Please sign in to comment.