syntax reparatur
This commit is contained in:
parent
9924f19bc3
commit
8349d649ab
|
|
@ -130,19 +130,19 @@ class NotificationPayloadFactory
|
||||||
|
|
||||||
|
|
||||||
protected function resolveDiscussionTitle(BlueprintInterface $blueprint): ?string
|
protected function resolveDiscussionTitle(BlueprintInterface $blueprint): ?string
|
||||||
{
|
{
|
||||||
$subject = $blueprint->getSubject();
|
$subject = $blueprint->getSubject();
|
||||||
|
|
||||||
if ($subject instanceof Discussion) {
|
if ($subject instanceof Discussion) {
|
||||||
return (string) $subject->title;
|
return (string) $subject->title;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($subject instanceof Post && $subject->discussion) {
|
||||||
|
return (string) $subject->discussion->title;
|
||||||
|
}
|
||||||
|
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($subject instanceof Post && $subject->discussion) {
|
|
||||||
return (string) $subject->discussion->title;
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
|
||||||
|
|
||||||
protected function resolveSubjectUrl(BlueprintInterface $blueprint): ?string
|
protected function resolveSubjectUrl(BlueprintInterface $blueprint): ?string
|
||||||
{
|
{
|
||||||
$baseUrl = rtrim((string) $this->settings->get('sbp-jm-msteams-webhook.forum_base_url', ''), '/');
|
$baseUrl = rtrim((string) $this->settings->get('sbp-jm-msteams-webhook.forum_base_url', ''), '/');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue