From: Nutomic Date: Fri, 10 Feb 2023 18:35:23 +0000 (+0900) Subject: Fix post titles being cut off (fixes #2718) (#2720) X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%7B%7D/%22%7Burl%7D/%7Bthis.src%28%27jpg%27%29%7D?a=commitdiff_plain;h=3bb98fcc64fd804b6daa089d5dd59d9b4c3d6f0d;p=lemmy.git 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 --- diff --git a/crates/apub/src/objects/post.rs b/crates/apub/src/objects/post.rs index e7a1d475..e6874f99 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);