CourseEvent fixed

This commit is contained in:
HolgerHatGarKeineNode
2023-02-25 11:21:15 +01:00
parent 17bb679777
commit 5ccec0bbd1

View File

@@ -45,8 +45,8 @@ trait NostrTrait
); );
} }
if ($model instanceof CourseEvent) { if ($model instanceof CourseEvent) {
if ($model->lecturer->nostr) { if ($model->course->lecturer->nostr) {
$from .= '@'.$model->lecturer->nostr; $from .= '@'.$model->course->lecturer->nostr;
} else { } else {
$from .= $model->lecturer->name; $from .= $model->lecturer->name;
} }