-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Autoshare For Twitter Support #221
base: trunk
Are you sure you want to change the base?
Add Autoshare For Twitter Support #221
Conversation
…upport integration currently in progress on: 10up/autoshare-for-twitter#331.
This is great... I will dig in in further detail and review. |
… Leveraging on the updated hook autoshare_for_twitter_post_tweet_status_updated which passes post_id and tweet_meta.
Hey @dshanske , After chatting with the rest of my team, we've concluded that it makes more sense to move this Autoshare for Twitter integration directly into the Syndication Links plugin itself. The newly added parameters, That said, I’m still encountering the same odd results I mentioned here in the Autoshare for Twitter plugin PR: the first tweet never seems to get stored in the
Would you mind giving these latest changes a try whenever you have a chance? I would greatly appreciate any guidance or insights into what might be causing that metadata not to persist after the first publication, despite |
This hook in the Syndication Links plugin creates a conflict with the ongoing Autoshare for X + Syndication Links integration currently in progress at 10up/autoshare-for-twitter#331.
Incomplete Tweet URLs, such as
https://twitter.com/i/web/status/
, are being generated and added because the Syndication Links plugin hooks intoautoshare_for_twitter_after_status_update
to handle the same functionality being developed in the Autoshare for Twitter plugin PR.Additionally, this implementation contains a bug in the variable names – it attempts to use the undefined variable
$tweet_status
, leaving$data
unused.Finally, by using
add_post_syndication_link( $post->ID, $url )
, it does not account for saving syndication link metadata in custom post types. This contrasts with using\Syn_Meta::add_syndication_link( $type, $post_id, $uri );
, which allows specifying the post type object where the metadata should be saved through the$type
parameter.