Make AP "direct messages" more compatible to Mastodon

2022.09-rc
Michael 2019-05-17 17:58:42 +00:00
rodzic 3f0aef9c72
commit f6fc70c4e2
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -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'] = '';