diff --git a/src/Entity/File.php b/src/Entity/File.php index 5ac7bf083a..5fdec34f4e 100644 --- a/src/Entity/File.php +++ b/src/Entity/File.php @@ -46,10 +46,10 @@ class File extends Entity private ?bool $is_url_protected; private ?string $url_hash; private ?string $file_hash; + private ?int $actor_id; private ?string $mimetype; private ?int $size; private ?string $title; - private ?int $timestamp; private ?bool $is_local; private DateTimeInterface $modified; @@ -108,6 +108,17 @@ class File extends Entity return $this->file_hash; } + public function setActorId(?int $actor_id): self + { + $this->actor_id = $actor_id; + return $this; + } + + public function getActorId(): ?int + { + return $this->actor_id; + } + public function setMimetype(?string $mimetype): self { $this->mimetype = $mimetype; @@ -141,17 +152,6 @@ class File extends Entity return $this->title; } - public function setTimestamp(?int $timestamp): self - { - $this->timestamp = $timestamp; - return $this; - } - - public function getTimestamp(): ?int - { - return $this->timestamp; - } - public function setIsLocal(?bool $is_local): self { $this->is_local = $is_local; diff --git a/src/Entity/Follow.php b/src/Entity/Follow.php index 3412651352..c6249baede 100644 --- a/src/Entity/Follow.php +++ b/src/Entity/Follow.php @@ -43,7 +43,6 @@ class Follow extends Entity private int $follower; private int $followed; - private ?string $uri; private DateTimeInterface $created; private DateTimeInterface $modified; @@ -69,17 +68,6 @@ class Follow extends Entity return $this->followed; } - public function setUri(?string $uri): self - { - $this->uri = $uri; - return $this; - } - - public function getUri(): ?string - { - return $this->uri; - } - public function setCreated(DateTimeInterface $created): self { $this->created = $created;