mirror of
https://github.com/friendica/friendica
synced 2025-04-23 10:30:11 +00:00
Improve data of shared posts
This commit is contained in:
parent
38d2b68558
commit
95f741c427
4 changed files with 37 additions and 4 deletions
|
@ -21,7 +21,6 @@
|
|||
|
||||
namespace Friendica\Protocol\ActivityPub;
|
||||
|
||||
use Friendica\Content\PageInfo;
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Content\Text\HTML;
|
||||
use Friendica\Content\Text\Markdown;
|
||||
|
@ -464,6 +463,7 @@ class Processor
|
|||
if (!empty($activity['source'])) {
|
||||
$item['body'] = $activity['source'];
|
||||
$item['raw-body'] = $content;
|
||||
$item['body'] = Item::improveSharedDataInBody($item);
|
||||
} else {
|
||||
if (empty($activity['directmessage']) && ($item['thr-parent'] != $item['uri']) && ($item['gravity'] == GRAVITY_COMMENT)) {
|
||||
$item_private = !in_array(0, $activity['item_receiver']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue