Skip to content

Commit

Permalink
fixed polldaddy
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Feb 13, 2019
1 parent 09b5a5f commit 5a1677f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions src/Providers/OEmbed/Poll.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace Embed\Providers\OEmbed;

class Poll extends Polldaddy
{
protected static $pattern = 'poll.fm/*';
}
2 changes: 1 addition & 1 deletion src/Providers/OEmbed/Polldaddy.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
class Polldaddy extends EndPoint implements EndPointInterface
{
protected static $pattern = 'polldaddy.com/poll/*';
protected static $endPoint = 'http://polldaddy.com/oembed';
protected static $endPoint = 'https://api.crowdsignal.com/oembed';
}
4 changes: 2 additions & 2 deletions tests/PolldaddyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ public function testOne()
[
'title' => 'Which design do you prefer?',
'description' => 'Poll Answers: Option #1, Option #2,',
'code' => '<script type="text/javascript" charset="utf-8" src="https://secure.polldaddy.com/p/7012505.js"></script><noscript><a href="https://polldaddy.com/poll/7012505/">Which design do you prefer?</a></noscript>',
'code' => '<script type="text/javascript" charset="utf-8" src="https://secure.polldaddy.com/p/7012505.js"></script><noscript><a href="https://poll.fm/7012505">Which design do you prefer?</a></noscript>',
'type' => 'rich',
'providerName' => 'Polldaddy',
'providerName' => 'Crowdsignal',
]
);
}
Expand Down

0 comments on commit 5a1677f

Please sign in to comment.