diff --git a/src/Factory/Api/Mastodon/Conversation.php b/src/Factory/Api/Mastodon/Conversation.php index b87291159..466603050 100644 --- a/src/Factory/Api/Mastodon/Conversation.php +++ b/src/Factory/Api/Mastodon/Conversation.php @@ -46,9 +46,12 @@ class Conversation extends BaseFactory } /** + * @param int $id Conversation id + * + * @return \Friendica\Object\Api\Mastodon\Conversation * @throws ImagickException|HTTPException\InternalServerErrorException|HTTPException\NotFoundException */ - public function CreateFromConvId(int $id): \Friendica\Object\Api\Mastodon\Conversation + public function createFromConvId(int $id): \Friendica\Object\Api\Mastodon\Conversation { $accounts = []; $unread = false; diff --git a/src/Module/Api/Mastodon/Conversations.php b/src/Module/Api/Mastodon/Conversations.php index 16fa127c8..066c36b9d 100644 --- a/src/Module/Api/Mastodon/Conversations.php +++ b/src/Module/Api/Mastodon/Conversations.php @@ -85,7 +85,7 @@ class Conversations extends BaseApi while ($conv = DBA::fetch($convs)) { self::setBoundaries($conv['id']); - $conversations[] = DI::mstdnConversation()->CreateFromConvId($conv['id']); + $conversations[] = DI::mstdnConversation()->createFromConvId($conv['id']); } DBA::close($convs); diff --git a/src/Module/Api/Mastodon/Conversations/Read.php b/src/Module/Api/Mastodon/Conversations/Read.php index 3882b3300..b01dc9d7c 100644 --- a/src/Module/Api/Mastodon/Conversations/Read.php +++ b/src/Module/Api/Mastodon/Conversations/Read.php @@ -42,6 +42,6 @@ class Read extends BaseApi DBA::update('mail', ['seen' => true], ['convid' => $this->parameters['id'], 'uid' => $uid]); - System::jsonExit(DI::mstdnConversation()->CreateFromConvId($this->parameters['id'])->toArray()); + System::jsonExit(DI::mstdnConversation()->createFromConvId($this->parameters['id'])->toArray()); } }