Skip to main content


DMs getting a content warning always when sent from my friendica


!Friendica Support When I write a DM to anybody it seems to be delivered with the topic "[No topic]" (translated from German) always although I cleared the topic input.
This produces a content warning always (tested on pleroma, mastodon and hubzilla).

Is there something I configured wrong, that DMs are sent with CW always even when topic was cleared by me?

Thank you!
@Grischa @Michael Vogel has been talking about redoing the private messages from the ground up. I thought we could just have a separate display for posts that have specific privacy, but apparently it wouldn't work well cross-protocol between ActivityPub and Diaspora.

Friendica Support reshared this.

So this is normal, that Friendica sends DMs with CW's?

Friendica Support reshared this.

@Grischa It is normal that Friendica sends DM with a subject field because you can set a subject for a given DM thread. We can't really control what remote systems are doing with this field and a CW is an unfortunate byproduct.

Friendica Support reshared this.

.. but my Friedica is sending "[no subject]" as subject, when I clear that subject input. This is wrong. it should send an empty subject. :)

Friendica Support reshared this.

@Grischa Yes but then you wouldn't be able to click on the conversation in Friendica because the link is generated from the subject. 🤷‍♂️

Friendica Support reshared this.

Well but if the subject is empty, the UI should replace <empty> with "[no subject]". This is an UI problem, not a transport problem, so putting this into the message instead in handling it on UI while displaying is wrong, isn't it?
(me whispers: my fancybox is ready ^^)

Friendica Support reshared this.

@Grischa Yes, it is wrong, welcome to Friendica where most of the bad decisions were taken by people who aren’t around anymore to defend them!

Friendica Support reshared this.

There is a lot of legacy stuff in that mail section. The database model is more than weird. Using the existing tables for regular posts would make some things easier.

Friendica Support reshared this.

@Grischa So, I poked around the mail (private message) feature and I must have kicked a hornet's nest or something because boy did I get stung.

The mail feature is used to handle private messages from/to Friendica, Mastodon, Pleroma or Diaspora, and I can't say for sure that all of them can skip the title. Additionally, mails can be submitted through a Twitter endpoint that seemingly provides a title despite none showing in the actual Twitter interface?

As a result, I can't enact the plan we talked about to allow to send blank subjects (to avoid Content Warnings) and deriving displayed subjects from the body when listing blank subject mail records.

Friendica Support reshared this.

I understand. It is not easy as there are so many connection types.
Best practice would be to handle "specialities" inside the connector addons. I know that AP services don't need the subject and interpret them as CW when found (tested mastodon, pleroma, hubzilla), as DMs are normal posts to mentioned accounts only normally.
How diaspora or twitter handles them, if they need or use them at all, I can not say of course. But would be cool to not have content put to the post in general, only when really needed (for that: in connector addons).

But I understand of course, that you core devs really have no time to do all that. Maybe "between the years" (like we Germans say) is time for me to install a dev environment for core source.. :)

Friendica Support reshared this.

@Grischa Where it gets dicier is that we use ActivityPub for both Friendica, Mastodon and Pleroma. We make use of a title while Mastodon and Pleroma do not. but we don’t differentiate in the code depending on the target platform.

Friendica Support reshared this.

Well Pleroma and Mastodon do make use of the title and interpret it as CW. Or am I misunderstanding you here?

Friendica Support reshared this.

Does it still do so if you add a topic. If the topic input has nothing in it your DM has no topic.

Friendica Support reshared this.

Sorry, this I don't understand.. My Friedica (distributed via yunohost, seems to be a developer branch version) do add "[No Topic]" as topic when I leave the topic empty. So on Pleroma, Mastodon and Hubzilla the DM is displayed as CW'ed with the warning "[No Topic]" ..

Friendica Support reshared this.

@Grischa Here’s how it currently works:
  • If subject is empty when sent, we assign “[no title]”.
  • If subject is empty when we receive a private message via ActivityPub, we create one based on the body by converting it from BBCode to Plaintext (expensive).
  • When we reply to a private message, we use the parent message subject, which should always be filled thanks to the previous behaviors.


I first removed the first two subject-filling behaviors and created a subject on the fly in the message list, but it both expensive, so I created a separate field for it to compute it only once.

But then I found out about the Diaspora and Twitter API integration, and then I realized I didn’t know which protocol actually needed the title to be set, which halted my work.

Friendica Support reshared this.