Skip to content

Commit

Permalink
Update BlueskyMessage.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kawax committed Sep 2, 2024
1 parent 8784d69 commit 36707a1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Notifications/BlueskyMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public function text(string $text): static

public function mention(string $text, string $did): static
{
$byteStart = mb_strlen($this->text);
$byteEnd = $byteStart + mb_strlen($text);
$byteStart = strlen($this->text);
$byteEnd = $byteStart + strlen($text);

$this->facets[] = [
'index' => [
Expand All @@ -54,8 +54,8 @@ public function mention(string $text, string $did): static

public function link(string $text, string $uri): static
{
$byteStart = mb_strlen($this->text);
$byteEnd = $byteStart + mb_strlen($text);
$byteStart = strlen($this->text);
$byteEnd = $byteStart + strlen($text);

$this->facets[] = [
'index' => [
Expand All @@ -77,8 +77,8 @@ public function link(string $text, string $uri): static

public function tag(string $text, string $tag): static
{
$byteStart = mb_strlen($this->text);
$byteEnd = $byteStart + mb_strlen($text);
$byteStart = strlen($this->text);
$byteEnd = $byteStart + strlen($text);

$this->facets[] = [
'index' => [
Expand Down

0 comments on commit 36707a1

Please sign in to comment.