mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
hotfix
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Observers;
|
||||
|
||||
use App\Models\Meetup;
|
||||
use App\Traits\TwitterTrait;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class MeetupObserver
|
||||
{
|
||||
@@ -18,6 +19,7 @@ class MeetupObserver
|
||||
*/
|
||||
public function created(Meetup $meetup)
|
||||
{
|
||||
try {
|
||||
if (config('feeds.services.twitterAccountId')) {
|
||||
$this->setNewAccessToken(1);
|
||||
|
||||
@@ -33,6 +35,9 @@ class MeetupObserver
|
||||
|
||||
$this->postTweet($text);
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
Log::error($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user