mirror of
https://github.com/friendica/friendica
synced 2024-11-11 04:22:53 +00:00
Merge pull request #7151 from annando/ap-mail-mastodon
Make AP "direct messages" more compatible to Mastodon
This commit is contained in:
commit
6cc376020e
1 changed files with 6 additions and 0 deletions
|
@ -645,6 +645,12 @@ class Transmitter
|
|||
|
||||
$reply = DBA::selectFirst('mail', ['uri'], ['parent-uri' => $mail['parent-uri'], 'reply' => false]);
|
||||
|
||||
// Making the post more compatible for Mastodon by:
|
||||
// - Making it a note and not an article (no title)
|
||||
// - Moving the title into the "summary" field that is used as a "content warning"
|
||||
$mail['body'] = '[abstract]' . $mail['title'] . "[/abstract]\n" . $mail['body'];
|
||||
$mail['title'] = '';
|
||||
|
||||
$mail['author-link'] = $mail['owner-link'] = $mail['from-url'];
|
||||
$mail['allow_cid'] = '<'.$mail['contact-id'].'>';
|
||||
$mail['allow_gid'] = '';
|
||||
|
|
Loading…
Reference in a new issue