Skip to content

Commit afa080e

Browse files
Merge pull request #107 from michaloravec/fix-default-api-version
Change default API version to 1.1 for media
2 parents 30375f8 + 4663962 commit afa080e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/TwitterChannel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public function __construct(protected TwitterOAuth $twitter)
2121
*/
2222
public function send($notifiable, Notification $notification): array|object
2323
{
24+
$this->twitter->setApiVersion('1.1');
2425
$this->changeTwitterSettingsIfNeeded($notifiable);
2526

2627
$twitterMessage = $notification->toTwitter($notifiable);

0 commit comments

Comments
 (0)