From 11a616b67d0c86a2aa2a1777d3abb7e371f90f18 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 18 Nov 2020 15:29:54 -0700 Subject: [PATCH] Update AP Inbox --- app/Util/ActivityPub/Inbox.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Util/ActivityPub/Inbox.php b/app/Util/ActivityPub/Inbox.php index 80e83e91a..a4c296f82 100644 --- a/app/Util/ActivityPub/Inbox.php +++ b/app/Util/ActivityPub/Inbox.php @@ -229,6 +229,7 @@ class Inbox $status->rendered = $msg; $status->visibility = 'direct'; $status->scope = 'direct'; + $status->url = $activity['id']; $status->in_reply_to_profile_id = $profile->id; $status->save(); @@ -245,7 +246,7 @@ class Inbox foreach($activity['attachment'] as $a) { $type = $a['mediaType']; $url = $a['url']; - $valid = self::validateUrl($url); + $valid = Helpers::validateUrl($url); if(in_array($type, $allowed) == false || $valid == false) { continue; }