mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
news hashtag added
This commit is contained in:
@@ -45,7 +45,7 @@ trait NostrTrait
|
|||||||
{
|
{
|
||||||
$from = '';
|
$from = '';
|
||||||
if ($model instanceof BitcoinEvent) {
|
if ($model instanceof BitcoinEvent) {
|
||||||
return sprintf("Ein neues Event wurde eingestellt:\n%s\n%s bis %s\n%s\n%s\n\n#Bitcoin #Event #Einundzwanzig #gesundesgeld",
|
return sprintf("Ein neues Event wurde eingestellt:\n%s\n%s bis %s\n%s\n%s\n\n#Bitcoin #Event #Einundzwanzig #gesundesgeld #einundzwanzig_portal_events",
|
||||||
$model->title,
|
$model->title,
|
||||||
$model->from->asDateTime(),
|
$model->from->asDateTime(),
|
||||||
$model->to->asDateTime(),
|
$model->to->asDateTime(),
|
||||||
@@ -60,12 +60,13 @@ trait NostrTrait
|
|||||||
$from .= $model->course->lecturer->name;
|
$from .= $model->course->lecturer->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
return sprintf("Unser Dozent %s hat einen neuen Kurs-Termin eingestellt:\n%s\n%s\n%s\n\n#Bitcoin #Kurs #Education #Einundzwanzig #gesundesgeld",
|
return sprintf("Unser Dozent %s hat einen neuen Kurs-Termin eingestellt:\n%s\n%s\n%s\n\n#Bitcoin #Kurs #Education #Einundzwanzig #gesundesgeld #einundzwanzig_portal_lecturer_%s",
|
||||||
$from,
|
$from,
|
||||||
$model->course->name,
|
$model->course->name,
|
||||||
str($model->course->description)->toString(),
|
str($model->course->description)->toString(),
|
||||||
url()->route('school.landingPage.lecturer',
|
url()->route('school.landingPage.lecturer',
|
||||||
['country' => 'de', 'lecturer' => $model->course->lecturer]),
|
['country' => 'de', 'lecturer' => $model->course->lecturer]),
|
||||||
|
str($model->course->lecturer->slug)->replace('-', '_')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if ($model instanceof MeetupEvent) {
|
if ($model instanceof MeetupEvent) {
|
||||||
@@ -74,12 +75,13 @@ trait NostrTrait
|
|||||||
$from .= ' @'.$model->meetup->nostr;
|
$from .= ' @'.$model->meetup->nostr;
|
||||||
}
|
}
|
||||||
|
|
||||||
return sprintf("%s hat einen neuen Termin eingestellt:\n%s\n%s\n%s\n\n#Bitcoin #Meetup #Einundzwanzig #gesundesgeld",
|
return sprintf("%s hat einen neuen Termin eingestellt:\n%s\n%s\n%s\n\n#Bitcoin #Meetup #Einundzwanzig #gesundesgeld #einundzwanzig_portal_%s",
|
||||||
$from,
|
$from,
|
||||||
$model->start->asDateTime(),
|
$model->start->asDateTime(),
|
||||||
$model->location,
|
$model->location,
|
||||||
url()->route('meetup.event.landing',
|
url()->route('meetup.event.landing',
|
||||||
['country' => 'de', 'meetupEvent' => $model->id]),
|
['country' => 'de', 'meetupEvent' => $model->id]),
|
||||||
|
str($model->meetup->slug)->replace('-', '_')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if ($model instanceof Meetup) {
|
if ($model instanceof Meetup) {
|
||||||
@@ -88,9 +90,10 @@ trait NostrTrait
|
|||||||
$from .= ' @'.$model->nostr;
|
$from .= ' @'.$model->nostr;
|
||||||
}
|
}
|
||||||
|
|
||||||
return sprintf("Eine neue Meetup Gruppe wurde hinzugefügt:\n%s\n%s\n\n#Bitcoin #Meetup #Einundzwanzig #gesundesgeld",
|
return sprintf("Eine neue Meetup Gruppe wurde hinzugefügt:\n%s\n%s\n\n#Bitcoin #Meetup #Einundzwanzig #gesundesgeld #einundzwanzig_portal_%s",
|
||||||
$from,
|
$from,
|
||||||
url()->route('meetup.landing', ['country' => $model->city->country->code, 'meetup' => $model])
|
url()->route('meetup.landing', ['country' => $model->city->country->code, 'meetup' => $model]),
|
||||||
|
str($model->slug)->replace('-', '_')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if ($model instanceof Course) {
|
if ($model instanceof Course) {
|
||||||
@@ -100,12 +103,13 @@ trait NostrTrait
|
|||||||
$from .= $model->lecturer->name;
|
$from .= $model->lecturer->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
return sprintf("Unser Dozent %s hat einen neuen Kurs eingestellt:\n%s\n%s\n%s\n\n#Bitcoin #Kurs #Education #Einundzwanzig #gesundesgeld",
|
return sprintf("Unser Dozent %s hat einen neuen Kurs eingestellt:\n%s\n%s\n%s\n\n#Bitcoin #Kurs #Education #Einundzwanzig #gesundesgeld #einundzwanzig_portal_lecturer_%s",
|
||||||
$from,
|
$from,
|
||||||
$model->name,
|
$model->name,
|
||||||
str($model->description)->toString(),
|
str($model->description)->toString(),
|
||||||
url()->route('school.landingPage.lecturer',
|
url()->route('school.landingPage.lecturer',
|
||||||
['country' => 'de', 'lecturer' => $model->lecturer]),
|
['country' => 'de', 'lecturer' => $model->lecturer]),
|
||||||
|
str($model->lecturer->slug)->replace('-', '_')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if ($model instanceof LibraryItem) {
|
if ($model instanceof LibraryItem) {
|
||||||
@@ -116,10 +120,11 @@ trait NostrTrait
|
|||||||
$from .= ' von '.$model->lecturer->name;
|
$from .= ' von '.$model->lecturer->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
return sprintf("Es gibt was Neues zum Lesen oder Anhören:\n%s\n%s\n\n#Bitcoin #Wissen #Einundzwanzig #gesundesgeld",
|
return sprintf("Es gibt was Neues zum Lesen oder Anhören:\n%s\n%s\n\n#Bitcoin #Wissen #Einundzwanzig #gesundesgeld #einundzwanzig_portal_%s",
|
||||||
$from,
|
$from,
|
||||||
url()->route('article.view',
|
url()->route('article.view',
|
||||||
['libraryItem' => $model->slug]),
|
['libraryItem' => $model->slug]),
|
||||||
|
str($model->slug)->replace('-', '_')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if ($model instanceof OrangePill) {
|
if ($model instanceof OrangePill) {
|
||||||
|
|||||||
@@ -101,4 +101,6 @@
|
|||||||
</section>
|
</section>
|
||||||
{{-- FOOTER --}}
|
{{-- FOOTER --}}
|
||||||
<livewire:frontend.footer/>
|
<livewire:frontend.footer/>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -191,4 +191,15 @@
|
|||||||
</section>
|
</section>
|
||||||
{{-- FOOTER --}}
|
{{-- FOOTER --}}
|
||||||
<livewire:frontend.footer/>
|
<livewire:frontend.footer/>
|
||||||
|
|
||||||
|
<div wire:ignore class="z-50">
|
||||||
|
<script
|
||||||
|
src="https://nostri.chat/public/bundle.js"
|
||||||
|
data-website-owner-pubkey="daf83d92768b5d0005373f83e30d4203c0b747c170449e02fea611a0da125ee6"
|
||||||
|
data-chat-type="GLOBAL"
|
||||||
|
data-chat-tags="#einundzwanzig_portal_lecturer_{{ str($lecturer->slug)->replace('-', '_') }}"
|
||||||
|
data-relays="wss://nostr.einundzwanzig.space,wss://nostr.easify.de,wss://nostr.mom,wss://relay.damus.io,wss://relay.snort.social"
|
||||||
|
></script>
|
||||||
|
<link rel="stylesheet" href="https://nostri.chat/public/bundle.css">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user