Update AP Inbox

pull/735/head
Daniel Supernault 2019-01-03 20:04:29 -07:00
rodzic 3b16b48439
commit 756d7c299b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -16,6 +16,10 @@ use Carbon\Carbon;
use App\Util\ActivityPub\Helpers;
use App\Jobs\LikePipeline\LikePipeline;
use App\Util\ActivityPub\Validator\{
Follow
};
class Inbox
{
protected $headers;
@ -52,6 +56,7 @@ class Inbox
break;
case 'Accept':
if(Accept::validate($this->payload) == false) { return; }
$this->handleAcceptActivity();
break;
@ -147,7 +152,8 @@ class Inbox
$caption = str_limit(strip_tags($activity['content']), config('pixelfed.max_caption_length'));
$status = new Status;
$status->profile_id = $actor->id;
$status->caption = Purify::clean($caption);
$status->caption = strip_tags($caption);
$status->rendered = Purify::clean($caption);
$status->visibility = $status->scope = 'public';
$status->uri = $url;
$status->url = $url;