mirror of
https://github.com/friendica/friendica
synced 2025-04-28 12:24:23 +02:00
Improved distribution of non public messages
This commit is contained in:
parent
9fb493bf18
commit
f5337904e4
4 changed files with 47 additions and 17 deletions
|
@ -1366,7 +1366,7 @@ class Item
|
|||
if ($notify) {
|
||||
DI::contentItem()->postProcessPost($posted_item);
|
||||
if ($copy_permissions && ($posted_item['thr-parent-id'] != $posted_item['uri-id']) && ($posted_item['private'] == self::PRIVATE)) {
|
||||
DI::contentItem()->copyPermissions($posted_item['thr-parent-id'], $posted_item['uri-id']);
|
||||
DI::contentItem()->copyPermissions($posted_item['thr-parent-id'], $posted_item['uri-id'], $posted_item['parent-uri-id']);
|
||||
}
|
||||
} else {
|
||||
Hook::callAll('post_remote_end', $posted_item);
|
||||
|
@ -3758,7 +3758,7 @@ class Item
|
|||
DI::profiler()->startRecording('rendering');
|
||||
$trailing = '';
|
||||
foreach ($PostMedias as $PostMedia) {
|
||||
if (strpos($item['body'], $PostMedia->url)) {
|
||||
if (strpos($item['body'], (string)$PostMedia->url)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue