Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #338 from alleyinteractive/hotfix/coral-story-id
Browse files Browse the repository at this point in the history
Only send Story ID for published posts
  • Loading branch information
amyevans authored Jul 1, 2021
2 parents 95849bb + 7f7a604 commit ad5d95a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/components/components/coral/component.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
$config,
[
'embed_URL' => untrailingslashit( Integrations\get_option_value( 'coral', 'url' ) ),
'story_id' => get_the_ID(),
'story_id' => 'publish' === get_post_status() ? get_the_ID() : null,
]
);
},
Expand Down

0 comments on commit ad5d95a

Please sign in to comment.