diff --git a/components/Bridge/Entity/ForeignLink.php b/components/Bridge/Entity/ForeignLink.php index 4734f710cc..f3617c6ee6 100644 --- a/components/Bridge/Entity/ForeignLink.php +++ b/components/Bridge/Entity/ForeignLink.php @@ -43,9 +43,9 @@ class ForeignLink private int $foreign_id; private int $service; private ?string $credentials; - private int $noticesync; - private int $friendsync; - private int $profilesync; + private int $noticesync = 1; + private int $friendsync = 2; + private int $profilesync = 1; private ?DateTimeInterface $last_noticesync; private ?DateTimeInterface $last_friendsync; private DateTimeInterface $created; diff --git a/plugins/ActivityPub/Entity/ActivityPubActor.php b/plugins/ActivityPub/Entity/ActivityPubActor.php index a2a72e0b72..be9bb8e563 100644 --- a/plugins/ActivityPub/Entity/ActivityPubActor.php +++ b/plugins/ActivityPub/Entity/ActivityPubActor.php @@ -35,6 +35,80 @@ namespace Plugin\ActivityPub\Entity; class ActivityPubActor { // {{{ Autocode + + private string $uri; + private int $profile_id; + private string $inboxuri; + private ?string $sharedInboxuri; + private ?DateTimeInterface $created; + private DateTimeInterface $modified; + + public function setUri(string $uri): self + { + $this->uri = $uri; + return $this; + } + + public function getUri(): string + { + return $this->uri; + } + + public function setProfileId(int $profile_id): self + { + $this->profile_id = $profile_id; + return $this; + } + + public function getProfileId(): int + { + return $this->profile_id; + } + + public function setInboxuri(string $inboxuri): self + { + $this->inboxuri = $inboxuri; + return $this; + } + + public function getInboxuri(): string + { + return $this->inboxuri; + } + + public function setSharedInboxuri(?string $sharedInboxuri): self + { + $this->sharedInboxuri = $sharedInboxuri; + return $this; + } + + public function getSharedInboxuri(): ?string + { + return $this->sharedInboxuri; + } + + public function setCreated(?DateTimeInterface $created): self + { + $this->created = $created; + return $this; + } + + public function getCreated(): ?DateTimeInterface + { + return $this->created; + } + + public function setModified(DateTimeInterface $modified): self + { + $this->modified = $modified; + return $this; + } + + public function getModified(): DateTimeInterface + { + return $this->modified; + } + // }}} Autocode /** @@ -291,42 +365,6 @@ class ActivityPubActor return $this->sharedInboxuri; } - /** - * Getter for uri property - * - * @return string URI - * - * @author Diogo Cordeiro - */ - public function getUri(): string - { - return $this->uri; - } - - /** - * Getter for url property - * - * @return string URL - * - * @author Diogo Cordeiro - */ - public function getUrl(): string - { - return $this->getUri(); - } - - /** - * Getter for id property - * - * @return int - * - * @author Diogo Cordeiro - */ - public function getID(): int - { - return $this->profile_id; - } - /** * Ensures a valid Activitypub_profile when provided with a valid URI. * diff --git a/plugins/ActivityPub/Entity/ActivityPubCryptKey.php b/plugins/ActivityPub/Entity/ActivityPubCryptKey.php index 7501baac44..b6f70b3180 100644 --- a/plugins/ActivityPub/Entity/ActivityPubCryptKey.php +++ b/plugins/ActivityPub/Entity/ActivityPubCryptKey.php @@ -35,6 +35,68 @@ namespace Plugin\ActivityPub\Entity; class ActivityPubCryptKey { // {{{ Autocode + + private int $gsactor_id; + private ?string $private_key; + private string $public_key; + private ?DateTimeInterface $created; + private DateTimeInterface $modified; + + public function setGsactorId(int $gsactor_id): self + { + $this->gsactor_id = $gsactor_id; + return $this; + } + + public function getGsactorId(): int + { + return $this->gsactor_id; + } + + public function setPrivateKey(?string $private_key): self + { + $this->private_key = $private_key; + return $this; + } + + public function getPrivateKey(): ?string + { + return $this->private_key; + } + + public function setPublicKey(string $public_key): self + { + $this->public_key = $public_key; + return $this; + } + + public function getPublicKey(): string + { + return $this->public_key; + } + + public function setCreated(?DateTimeInterface $created): self + { + $this->created = $created; + return $this; + } + + public function getCreated(): ?DateTimeInterface + { + return $this->created; + } + + public function setModified(DateTimeInterface $modified): self + { + $this->modified = $modified; + return $this; + } + + public function getModified(): DateTimeInterface + { + return $this->modified; + } + // }}} Autocode /** diff --git a/plugins/ActivityPub/Entity/ActivityPubFollowRequests.php b/plugins/ActivityPub/Entity/ActivityPubFollowRequests.php index 66dac19605..68cef6a03f 100644 --- a/plugins/ActivityPub/Entity/ActivityPubFollowRequests.php +++ b/plugins/ActivityPub/Entity/ActivityPubFollowRequests.php @@ -35,6 +35,44 @@ namespace Plugin\ActivityPub\Entity; class ActivityPubFollowRequests { // {{{ Autocode + + private int $local_gsactor_id; + private int $remote_gsactor_id; + private int $relation_id; + + public function setLocalGsactorId(int $local_gsactor_id): self + { + $this->local_gsactor_id = $local_gsactor_id; + return $this; + } + + public function getLocalGsactorId(): int + { + return $this->local_gsactor_id; + } + + public function setRemoteGsactorId(int $remote_gsactor_id): self + { + $this->remote_gsactor_id = $remote_gsactor_id; + return $this; + } + + public function getRemoteGsactorId(): int + { + return $this->remote_gsactor_id; + } + + public function setRelationId(int $relation_id): self + { + $this->relation_id = $relation_id; + return $this; + } + + public function getRelationId(): int + { + return $this->relation_id; + } + // }}} Autocode public static function schemaDef()