This commit is contained in:
HolgerHatGarKeineNode
2023-02-11 21:58:22 +01:00
parent 1b24e423a9
commit 4aa26a3a22

View File

@@ -20,6 +20,12 @@ class ArticleOverview extends Component
'lecturer',
])
->find($id);
if ($libraryItem->tweet) {
$this->notification()
->error(__('Article already tweeted'));
return;
}
$libraryItem->setStatus('published');
$libraryItemName = $libraryItem->name;
if ($libraryItem->lecturer->twitter_username && $libraryItem->type !== 'markdown_article') {