Don't transmit empty conversations

This commit is contained in:
Michael 2022-09-06 15:18:41 +00:00
parent f0d151932e
commit 2a4c6d44bb

View file

@ -1610,7 +1610,10 @@ class Transmitter
$data['url'] = $link ?? $item['plink']; $data['url'] = $link ?? $item['plink'];
$data['attributedTo'] = $item['author-link']; $data['attributedTo'] = $item['author-link'];
$data['sensitive'] = self::isSensitive($item['uri-id']); $data['sensitive'] = self::isSensitive($item['uri-id']);
$data['conversation'] = $data['context'] = ($item['conversation'] ?? '');
if (!empty($item['conversation']) && ($item['conversation'] != './')) {
$data['conversation'] = $data['context'] = $item['conversation'];
}
if (!empty($item['title'])) { if (!empty($item['title'])) {
$data['name'] = BBCode::toPlaintext($item['title'], false); $data['name'] = BBCode::toPlaintext($item['title'], false);