jardenberg / SharedItems2WP

Create a post in Wordpress based on Shared Items, with notes, in Google reader
http://jardenberg.github.com/SharedItems2WP
7 stars 3 forks source link

Some links get rewritten #3

Open jardenberg opened 14 years ago

jardenberg commented 14 years ago

Links to some sites, fx facebook, get rewritten breaks.

worldeggplant commented 13 years ago

The reason for this is probably that Facebook and other websites checks browsers(/bots) user agents. SharedItems2WP probably sends the default UA set for PHP when doing HEAD requests to return the definite path.

This should be relatively easy to fix. I'll put it on my TODO.

worldeggplant commented 13 years ago

This is now fixed! I added proper headers to the HEAD request and all seems well. See: http://github.com/worldeggplant/SharedItems2WP/commit/296c1e137cd87cfdc5ba292d15ce7af923592873#SharedItems2WP.php-P18 for tech deets.