Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Model/InboxAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ private function __construct(
public readonly ?bool $dmSupported,
public readonly ?string $dmPendingReason,
public readonly ?bool $canStartConversation,
/** The grant predates a permission the inbox needs; reconnect once. */
public readonly ?bool $reconnectRequired,
) {
parent::__construct($raw);
}
Expand All @@ -41,6 +43,7 @@ public static function fromArray(mixed $data): static
self::bool($data, 'dm_supported'),
self::str($data, 'dm_pending_reason'),
self::bool($data, 'can_start_conversation'),
self::bool($data, 'reconnect_required'),
);
}
}
3 changes: 3 additions & 0 deletions src/Model/InboxItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ private function __construct(
public readonly ?bool $canSendMedia,
public readonly ?bool $canQuickReply,
public readonly ?bool $canPrivateReply,
/** The platform's own state: published, held, spam or rejected. */
public readonly ?string $moderationStatus,
public readonly ?array $post,
public readonly ?array $postContext,
public readonly ?array $account,
Expand Down Expand Up @@ -101,6 +103,7 @@ public static function fromArray(mixed $data): static
self::bool($data, 'can_send_media'),
self::bool($data, 'can_quick_reply'),
self::bool($data, 'can_private_reply'),
self::str($data, 'moderation_status'),
self::nested($data, 'post'),
self::nested($data, 'post_context'),
self::nested($data, 'account'),
Expand Down
Loading