news hashtag added

This commit is contained in:
HolgerHatGarKeineNode
2023-03-08 17:25:26 +01:00
parent a40f8ff06e
commit 00e6f75358

View File

@@ -27,10 +27,11 @@ class ArticleOverview extends Component
} else { } else {
$libraryItemName .= ' von '.$libraryItem->lecturer->name; $libraryItemName .= ' von '.$libraryItem->lecturer->name;
} }
$text = sprintf("Ein neuer News-Artikel wurde verfasst:\n\n%s\n\n%s\n\n#Bitcoin #News #Einundzwanzig #gesundesgeld", $text = sprintf("Ein neuer News-Artikel wurde verfasst:\n\n%s\n\n%s\n\n#Bitcoin #News #Einundzwanzig #gesundesgeld #einundzwanzig_portal_%s",
$libraryItemName, $libraryItemName,
url()->route('article.view', url()->route('article.view',
['libraryItem' => $libraryItem->slug]), ['libraryItem' => $libraryItem->slug]),
str($libraryItem->slug)->replace('-', '_')
); );
$result = $this->publishOnNostr($libraryItem, $text); $result = $this->publishOnNostr($libraryItem, $text);
if ($result['success']) { if ($result['success']) {