diff --git a/crates/apub/assets/lemmy-comment.json b/crates/apub/assets/lemmy-comment.json index 1d0740ebb..663067ea8 100644 --- a/crates/apub/assets/lemmy-comment.json +++ b/crates/apub/assets/lemmy-comment.json @@ -19,7 +19,7 @@ "https://w3id.org/security/v1" ], "attributedTo": "https://lemmy.ml/u/nutomic", - "summary": "While I very much get and respect the general sentiment, I think from the perspective of a Central European non-English person in a country with a significant number of, also non-English speaking Nazis, the current approach of filtering slurs based on an English regex is fatally flawed. You can happily use Lemmy to create a hostile far right community where everyone is easily able to use whatever hurtful slurs they want as long as they are not the few specifically blocked English ones. \n\nOn the other hand you create a situation where people feel the need to question the choice of software of their community because they read about censorship or whatever to be used in Lemmy and might stay away and move to other software even though the would maybe never be affected by the slur-filter as the number is not so large and the overlap with other languages not very big.\n\nSo I would argue that this specific implementation of a slur-filter just doesn't achieve what it aims to achieve and should be fundamentally rethought, maybe as configurable per instance.", + "content": "While I very much get and respect the general sentiment, I think from the perspective of a Central European non-English person in a country with a significant number of, also non-English speaking Nazis, the current approach of filtering slurs based on an English regex is fatally flawed. You can happily use Lemmy to create a hostile far right community where everyone is easily able to use whatever hurtful slurs they want as long as they are not the few specifically blocked English ones. \n\nOn the other hand you create a situation where people feel the need to question the choice of software of their community because they read about censorship or whatever to be used in Lemmy and might stay away and move to other software even though the would maybe never be affected by the slur-filter as the number is not so large and the overlap with other languages not very big.\n\nSo I would argue that this specific implementation of a slur-filter just doesn't achieve what it aims to achieve and should be fundamentally rethought, maybe as configurable per instance.", "id": "https://lemmy.ml/comment/38741", "inReplyTo": "https://lemmy.ml/post/55143", "mediaType": "text/html", diff --git a/crates/apub/assets/lemmy-community.json b/crates/apub/assets/lemmy-community.json index e0f3c6809..b9488ab70 100644 --- a/crates/apub/assets/lemmy-community.json +++ b/crates/apub/assets/lemmy-community.json @@ -18,7 +18,7 @@ }, "https://w3id.org/security/v1" ], - "content": "
Lemmy Announcements
\nFeel free to announce new communities here.
\nOther than that, this is reserved for admin use only.
\n", + "summary": "Lemmy Announcements
\nFeel free to announce new communities here.
\nOther than that, this is reserved for admin use only.
\n", "endpoints": { "sharedInbox": "https://lemmy.ml/inbox" }, @@ -29,7 +29,6 @@ }, "id": "https://lemmy.ml/c/announcements", "inbox": "https://lemmy.ml/c/announcements/inbox", - "mediaType": "text/html", "moderators": "https://lemmy.ml/c/announcements/moderators", "name": "Announcements", "outbox": "https://lemmy.ml/c/announcements/outbox", diff --git a/crates/apub/assets/lemmy-person.json b/crates/apub/assets/lemmy-person.json index 6514b6e91..6cd976584 100644 --- a/crates/apub/assets/lemmy-person.json +++ b/crates/apub/assets/lemmy-person.json @@ -18,7 +18,7 @@ }, "https://w3id.org/security/v1" ], - "content": "Lemmy maintainer. Interested in politics, video games, and many other things.
\n", + "summary": "Lemmy maintainer. Interested in politics, video games, and many other things.
\n", "endpoints": { "sharedInbox": "https://lemmy.ml/inbox" }, @@ -28,7 +28,6 @@ }, "id": "https://lemmy.ml/u/nutomic", "inbox": "https://lemmy.ml/u/nutomic/inbox", - "mediaType": "text/html", "outbox": "https://lemmy.ml/u/nutomic/outbox", "preferredUsername": "nutomic", "publicKey": { diff --git a/crates/apub/src/objects/community.rs b/crates/apub/src/objects/community.rs index 525ae854d..9f9a91aca 100644 --- a/crates/apub/src/objects/community.rs +++ b/crates/apub/src/objects/community.rs @@ -4,7 +4,7 @@ use crate::{ fetcher::community::{fetch_community_outbox, update_community_mods}, generate_moderators_url, generate_outbox_url, - objects::{create_tombstone, ImageObject, Source}, + objects::{create_tombstone, get_summary_from_string_or_source, ImageObject, Source}, CommunityType, }; use activitystreams::{ @@ -21,7 +21,7 @@ use lemmy_api_common::blocking; use lemmy_apub_lib::{ signatures::PublicKey, traits::{ActorType, ApubObject, FromApub, ToApub}, - values::{MediaTypeHtml, MediaTypeMarkdown}, + values::MediaTypeMarkdown, verify::verify_domains_match, }; use lemmy_db_schema::{ @@ -55,8 +55,7 @@ pub struct Group { preferred_username: String, /// title (can be changed at any time) name: String, - content: Option