sforkowany z mirror/friendica
Fix: Don't automatically mention a post creator on private posts
rodzic
1de81716b3
commit
484b99f7cf
|
@ -381,16 +381,16 @@ class Transmitter
|
|||
|
||||
$terms = Term::tagArrayFromItemId($item['id'], [Term::MENTION, Term::IMPLICIT_MENTION]);
|
||||
|
||||
// Directly mention the original author upon a quoted reshare.
|
||||
// Else just ensure that the original author receives the reshare.
|
||||
$announce = self::getAnnounceArray($item);
|
||||
if (!empty($announce['comment'])) {
|
||||
$data['to'][] = $announce['actor']['url'];
|
||||
} elseif (!empty($announce)) {
|
||||
$data['cc'][] = $announce['actor']['url'];
|
||||
}
|
||||
|
||||
if (!$item['private']) {
|
||||
// Directly mention the original author upon a quoted reshare.
|
||||
// Else just ensure that the original author receives the reshare.
|
||||
$announce = self::getAnnounceArray($item);
|
||||
if (!empty($announce['comment'])) {
|
||||
$data['to'][] = $announce['actor']['url'];
|
||||
} elseif (!empty($announce)) {
|
||||
$data['cc'][] = $announce['actor']['url'];
|
||||
}
|
||||
|
||||
$data = array_merge($data, self::fetchPermissionBlockFromConversation($item));
|
||||
|
||||
$data['to'][] = ActivityPub::PUBLIC_COLLECTION;
|
||||
|
|
Ładowanie…
Reference in New Issue