From 3bb98fcc64fd804b6daa089d5dd59d9b4c3d6f0d Mon Sep 17 00:00:00 2001 From: Nutomic Date: Sat, 11 Feb 2023 03:35:23 +0900 Subject: [PATCH] Fix post titles being cut off (fixes #2718) (#2720) I didnt notice that this limit would also apply to Lemmy and other software which has the title field. So gonna change it to be identical to db limit --- crates/apub/src/objects/post.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/apub/src/objects/post.rs b/crates/apub/src/objects/post.rs index e7a1d475d..e6874f99e 100644 --- a/crates/apub/src/objects/post.rs +++ b/crates/apub/src/objects/post.rs @@ -47,7 +47,7 @@ use lemmy_utils::{ use std::ops::Deref; use url::Url; -const MAX_TITLE_LENGTH: usize = 100; +const MAX_TITLE_LENGTH: usize = 200; #[derive(Clone, Debug)] pub struct ApubPost(pub(crate) Post);