Merge pull request #5842 from annando/ap-distribution

Improved AP distribution / Only process trusted content
This commit is contained in:
Hypolite Petovan 2018-10-06 09:35:44 -04:00 committed by GitHub
commit 2341ce353d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 1 deletions

View file

@ -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']) {

View file

@ -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'];