Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Notifier] [Bluesky] Return the record CID as additional info #59789

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 18, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ protected function doSend(MessageInterface $message): SentMessage

if (200 === $statusCode) {
$content = $response->toArray();
$sentMessage = new SentMessage($message, (string) $this);

$sentMessage = new SentMessage($message, (string) $this, ['cid' => $content['cid']]);
$sentMessage->setMessageId($content['uri']);

return $sentMessage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ CHANGELOG
---

* Add option to attach a website preview card
* Add `cid` info into returned `SentMessage`

7.2
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ public function testReturnedMessageId()
$message = $transport->send(new ChatMessage('Hello!'));

$this->assertSame($recordUri, $message->getMessageId());
$this->assertSame($recordCid, $message->getInfo('cid'));
}

public static function sendMessageWithEmbedDataProvider(): iterable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"psr/log": "^1|^2|^3",
"symfony/clock": "^6.4|^7.0",
"symfony/http-client": "^6.4|^7.0",
"symfony/notifier": "^7.2",
"symfony/notifier": "^7.3",
"symfony/string": "^6.4|^7.0"
},
"require-dev": {
Expand Down
Loading