[ActivityPub] Add ActivityToType

Minor bug fixes
This commit is contained in:
2021-11-30 00:46:29 +00:00
parent 4ddd00a091
commit df3fbbc9e7
7 changed files with 151 additions and 7 deletions

View File

@@ -153,7 +153,7 @@ class Activity extends Entity
public function getObject(): mixed
{
return DB::findBy($this->getObjectType(), ['id' => $this->getObjectId()]);
return DB::findOneBy($this->getObjectType(), ['id' => $this->getObjectId()]);
}
/**