[ActivityPub][Inbox] Restore Create Note Functionality

Minor bug fixes
This commit is contained in:
2021-11-27 15:06:46 +00:00
parent 7145dba8af
commit 56526c9ba6
15 changed files with 138 additions and 148 deletions

View File

@@ -55,7 +55,7 @@ class Note extends Entity
private ?string $source;
private int $scope = VisibilityScope::PUBLIC;
private string $url;
private int $language_id;
private ?int $language_id = null;
private DateTimeInterface $created;
private DateTimeInterface $modified;
@@ -166,7 +166,7 @@ class Note extends Entity
return $this->language_id;
}
public function setLanguageId(int $language_id): self
public function setLanguageId(?int $language_id): self
{
$this->language_id = $language_id;
return $this;