LemmyNet / lemmy

🐀 A link aggregator and forum for the fediverse
https://join-lemmy.org
GNU Affero General Public License v3.0
13.22k stars 877 forks source link

Setting for accepting posts without title (eg from Mastodon) #2702

Open Tealk opened 1 year ago

Tealk commented 1 year ago

Issue Summary

Mastodon now seems to create posts in lemmy when the community is mentioned.

https://lemmy.rollenspiel.monster/c/rm_news

Steps to Reproduce

  1. Create a post on Mastodon and mention the community.

Technical details

Lemmy 0.17.1 Lemmy-UI 0.17.1

Nutomic commented 1 year ago

The check for posting restricted to mods was missing from federation code, I added that just now.

About Mastodon posts in general, there is no setting yet to allow/disallow them. We can implement that, the question is how. Should it be a site setting or community setting? Allowed or disallowed by default?

Tealk commented 1 year ago

I would do it as a community setting, then you have the greatest freedom in the selection. Default would be active useful I would say because then it corresponds more to the idea of fediverse

dessalines commented 1 year ago

What would be a circumstance where people would want a mastodon specific setting? Wouldn't it just be better to add that instance to your blocklist?

Tealk commented 1 year ago

Is there a reason not to? Why not give the Amdins and users the opportunity and let them decide for themselves?

dessalines commented 1 year ago

Because it gets out of hand really quickly, soon we'll have to start adding software-specific settings for every type of fediverse software lemmy connects with. What makes mastodon a candidate for this, and not pleroma, or peertube?

And I still don't know exactly what your use-case is.

Tealk commented 1 year ago

With mastodon the problem is that it has no title field and therefore the heading consists of the first x characters.

Maybe you just don't want to be able to create posts away from lemmy and only reply to existing ones.

In principle, I now have no particular reason to disable the creation of posts from non-lemmy instances, at mastodon it is just simply the title thematik

Nutomic commented 1 year ago

The setting wouldnt be about Mastodon, but whether posts without title should be accepted or not. It just happens that most of these posts come from Mastodon.

dessalines commented 1 month ago

Maybe we should coerce a title from the content, even when there isn't one? Our post.title is a required / NOT NULL column anyway.

Nutomic commented 1 month ago

Thats what we are doing but it doesnt always work well (eg if someone tags a community by accident).

https://github.com/LemmyNet/lemmy/blob/main/crates/apub/src/objects/post.rs#L197-L217