diff options
-rw-r--r-- | lib/Service/Social/TwitterProvider.php | 4 | ||||
-rw-r--r-- | tests/unit/Service/Social/TwitterProviderTest.php | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/Service/Social/TwitterProvider.php b/lib/Service/Social/TwitterProvider.php index 9460fb40..fc566aca 100644 --- a/lib/Service/Social/TwitterProvider.php +++ b/lib/Service/Social/TwitterProvider.php @@ -69,9 +69,9 @@ class TwitterProvider implements ISocialProvider { $profileIds = $this->getProfileIds($contact); $urls = []; foreach ($profileIds as $profileId) { - $recipe = 'https://mobile.twitter.com/{socialId}'; + $recipe = 'https://twitter.com/{socialId}'; $connector = str_replace("{socialId}", $profileId, $recipe); - $connector = $this->getFromHtml($connector, '_normal'); + $connector = $this->getFromHtml($connector, 'profile_image'); $urls[] = $connector; } return $urls; diff --git a/tests/unit/Service/Social/TwitterProviderTest.php b/tests/unit/Service/Social/TwitterProviderTest.php index fbaf05ca..45d527d4 100644 --- a/tests/unit/Service/Social/TwitterProviderTest.php +++ b/tests/unit/Service/Social/TwitterProviderTest.php @@ -100,16 +100,16 @@ class TwitterProviderTest extends TestCase { ] ]; $contactWithSocialUrls = [ - "https://mobile.twitter.com/username1", - "https://mobile.twitter.com/username2", + "https://twitter.com/username1", + "https://twitter.com/username2", ]; $contactWithSocialHtml = [ - '<html><img src="username1_normal.jpg" /></html>', - '<html><img src="username2_normal.jpg" /></html>', + '<html><img src="./profile_images/username1_normal.jpg" /></html>', + '<html><img src="./profile_images/username2_normal.jpg" /></html>', ]; $contactWithSocialImgs = [ - "username1_400x400.jpg", - "username2_400x400.jpg" + "./profile_images/username1_400x400.jpg", + "./profile_images/username2_400x400.jpg" ]; $contactWithoutSocial = [ |