|
@@ -20,7 +20,7 @@ discard block |
|
|
block discarded – undo |
|
20
|
20
|
* |
|
21
|
21
|
* @throws CouldNotSendNotification |
|
22
|
22
|
*/ |
|
23
|
|
- public function send($notifiable, Notification $notification): array|object |
|
|
23
|
+ public function send($notifiable, Notification $notification): array | object |
|
24
|
24
|
{ |
|
25
|
25
|
$this->changeTwitterSettingsIfNeeded($notifiable); |
|
26
|
26
|
$this->twitter->setApiVersion('1.1'); |
|
@@ -78,7 +78,7 @@ discard block |
|
|
block discarded – undo |
|
78
|
78
|
if (is_a($twitterMessage, TwitterStatusUpdate::class) && $twitterMessage->getImages()) { |
|
79
|
79
|
$this->twitter->setTimeouts(10, 15); |
|
80
|
80
|
|
|
81
|
|
- $twitterMessage->imageIds = collect($twitterMessage->getImages())->map(function (TwitterImage $image) { |
|
|
81
|
+ $twitterMessage->imageIds = collect($twitterMessage->getImages())->map(function(TwitterImage $image) { |
|
82
|
82
|
$media = $this->twitter->upload('media/upload', ['media' => $image->getPath()]); |
|
83
|
83
|
|
|
84
|
84
|
return $media->media_id_string; |
|
@@ -96,7 +96,7 @@ discard block |
|
|
block discarded – undo |
|
96
|
96
|
if (is_a($twitterMessage, TwitterStatusUpdate::class) && $twitterMessage->getVideos()) { |
|
97
|
97
|
$this->twitter->setTimeouts(10, 15); |
|
98
|
98
|
|
|
99
|
|
- $twitterMessage->videoIds = collect($twitterMessage->getVideos())->map(function (TwitterVideo $video) { |
|
|
99
|
+ $twitterMessage->videoIds = collect($twitterMessage->getVideos())->map(function(TwitterVideo $video) { |
|
100
|
100
|
$media = $this->twitter->upload( |
|
101
|
101
|
'media/upload', |
|
102
|
102
|
[ |
Please login to merge, or discard this patch.