mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
disable book twitter
This commit is contained in:
@@ -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);
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user