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:
@@ -20,6 +20,12 @@ class ArticleOverview extends Component
|
|||||||
'lecturer',
|
'lecturer',
|
||||||
])
|
])
|
||||||
->find($id);
|
->find($id);
|
||||||
|
if ($libraryItem->tweet) {
|
||||||
|
$this->notification()
|
||||||
|
->error(__('Article already tweeted'));
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
$libraryItem->setStatus('published');
|
$libraryItem->setStatus('published');
|
||||||
$libraryItemName = $libraryItem->name;
|
$libraryItemName = $libraryItem->name;
|
||||||
if ($libraryItem->lecturer->twitter_username && $libraryItem->type !== 'markdown_article') {
|
if ($libraryItem->lecturer->twitter_username && $libraryItem->type !== 'markdown_article') {
|
||||||
|
|||||||
Reference in New Issue
Block a user