webhook skip own
This commit is contained in:
@@ -59,6 +59,11 @@ class WebhookEventQueueItem extends Entity
|
||||
return $this->get('targetId');
|
||||
}
|
||||
|
||||
public function getUserId(): ?string
|
||||
{
|
||||
return $this->get('userId');
|
||||
}
|
||||
|
||||
public function getData(): stdClass
|
||||
{
|
||||
return $this->get('data') ?? (object) [];
|
||||
@@ -69,6 +74,11 @@ class WebhookEventQueueItem extends Entity
|
||||
return $this->set('event', $event);
|
||||
}
|
||||
|
||||
public function setUserId(?string $userId): self
|
||||
{
|
||||
return $this->set('userId', $userId);
|
||||
}
|
||||
|
||||
public function setTarget(LinkParent|Entity $target): self
|
||||
{
|
||||
return $this->setRelatedLinkOrEntity('target', $target);
|
||||
|
||||
Reference in New Issue
Block a user