mirror of
https://github.com/friendica/friendica
synced 2025-04-30 09:44:22 +02:00
Merge pull request #5842 from annando/ap-distribution
Improved AP distribution / Only process trusted content
This commit is contained in:
commit
2341ce353d
3 changed files with 14 additions and 1 deletions
|
@ -208,6 +208,7 @@ class Receiver
|
|||
|
||||
if (!$trust_source) {
|
||||
logger('No trust for activity type "' . $activity['type'] . '", so we quit now.', LOGGER_DEBUG);
|
||||
return;
|
||||
}
|
||||
|
||||
switch ($activity['type']) {
|
||||
|
|
|
@ -773,7 +773,7 @@ class Transmitter
|
|||
$data['context'] = self::fetchContextURLForItem($item);
|
||||
|
||||
if (!empty($item['title'])) {
|
||||
$data['name'] = BBCode::convert($item['title'], false, 7);
|
||||
$data['name'] = BBCode::toPlaintext($item['title'], false);
|
||||
}
|
||||
|
||||
$body = $item['body'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue