From 199c8e8b12d2a59519a458268a16c2baeb60b626 Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Thu, 9 Jan 2025 19:44:02 +0200 Subject: [PATCH] make link 25 characters --- bot/src/mastodon/api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/src/mastodon/api.rs b/bot/src/mastodon/api.rs index 5c150c0..59840f2 100644 --- a/bot/src/mastodon/api.rs +++ b/bot/src/mastodon/api.rs @@ -32,7 +32,7 @@ impl From for PostStatusRequest { let link = value.link.unwrap(); // reserve space for the link + one space - character_budget -= link.len() as i32 + 2; + character_budget -= 25; // Push the title if character_budget > 0 {