Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.
PHP ai-agentsblueskyfacebookinstagramlaravellinkedinmastodonmcpmcp-serveropen-sourcerest-apiself-hostedsocial-mediasocial-media-managementsocial-media-schedulerthreadstiktokvuejsxyoutube
Lock Telegram @mention passthrough in sanitizer test
Paulo Castellanoe907ad087f22
diff --git a/tests/Feature/Services/Social/ContentSanitizerTest.php b/tests/Feature/Services/Social/ContentSanitizerTest.phpindex 4acbc3fb9..4a0e607a4 100644--- a/tests/Feature/Services/Social/ContentSanitizerTest.php+++ b/tests/Feature/Services/Social/ContentSanitizerTest.php@@ -100,3 +100,9 @@ test('it drops anchors without an href for telegram', function () {$result = $sanitizer->sanitize('<p>see <a>bare</a> and <a href="https://x.com">link</a></p>', Platform::Telegram);expect($result)->toBe('see bare and <a href="https://x.com">link</a>');});++test('it preserves @username mentions as plain text for telegram', function () {+ $sanitizer = new ContentSanitizer;+ $result = $sanitizer->sanitize('<p>Hey @durov and @TryPostBot</p>', Platform::Telegram);+ expect($result)->toBe('Hey @durov and @TryPostBot');+});