Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: barnabywalters/php-helpers
base: e50fbf1c1a
...
head fork: barnabywalters/php-helpers
compare: 4f47134a0c
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
View
2  BarnabyWalters/Posse/EventListener/TwitterSyndicator.php
@@ -295,7 +295,7 @@ public function syndicateToTwitter(Event $event) {
$tweetId = $tweet['id_str'];
$tweetUserHandle = $tweet['user']['screen_name'];
- $tweetUrl = 'https://twitter.com/' . $tweetUserHandle . '/statuses/' . $tweetId;
+ $tweetUrl = 'https://twitter.com/' . $tweetUserHandle . '/status/' . $tweetId;
$object->addDownstreamDuplicate($tweetUrl);
View
2  BarnabyWalters/Posse/Helpers.php
@@ -55,7 +55,7 @@ public static function prepareForTwitter($text, $url = null, $inReplyTo = null)
if ($inReplyTo !== null) {
// Check if there’s a twitter status ID in the URL to use
- $tweetPattern = '/https?:\/\/twitter.com\/[a-zA-Z_]{1,20}\/statuses\/([0-9]*)/';
+ $tweetPattern = '/https?:\/\/twitter.com\/[a-zA-Z_]{1,20}\/status\/([0-9]*)/';
$matches = array();
preg_match($tweetPattern, $inReplyTo, $matches);

No commit comments for this range

Something went wrong with that request. Please try again.