From b721683b99a446b18b27f35785ba9f0d08c1693e Mon Sep 17 00:00:00 2001 From: Benjamin Takats Date: Tue, 24 Jan 2023 17:11:40 +0100 Subject: [PATCH] disable book twitter --- app/Observers/OrangePillObserver.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/Observers/OrangePillObserver.php b/app/Observers/OrangePillObserver.php index 7d0a1490..40905a72 100644 --- a/app/Observers/OrangePillObserver.php +++ b/app/Observers/OrangePillObserver.php @@ -18,17 +18,17 @@ class OrangePillObserver */ public function created(OrangePill $orangePill) { - if (config('feeds.services.twitterAccountId')) { - $this->setNewAccessToken(1); - - $text = sprintf("Ein neues Bitcoin-Buch liegt nun in diesem öffentlichen Bücherschrank:\n\n%s\n\n%s\n\n%s\n\n#Bitcoin #Education #Einundzwanzig #gesundesgeld", - $orangePill->bookCase->title, - $orangePill->bookCase->address, - url()->route('bookCases.comment.bookcase', ['country' => 'de', 'bookCase' => $orangePill->bookCase]), - ); - - $this->postTweet($text); - } +// if (config('feeds.services.twitterAccountId')) { +// $this->setNewAccessToken(1); +// +// $text = sprintf("Ein neues Bitcoin-Buch liegt nun in diesem öffentlichen Bücherschrank:\n\n%s\n\n%s\n\n%s\n\n#Bitcoin #Education #Einundzwanzig #gesundesgeld", +// $orangePill->bookCase->title, +// $orangePill->bookCase->address, +// url()->route('bookCases.comment.bookcase', ['country' => 'de', 'bookCase' => $orangePill->bookCase]), +// ); +// +// $this->postTweet($text); +// } } /**