mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 21:43:17 +00:00
Update AP Inbox
This commit is contained in:
parent
8444d2dc50
commit
11a616b67d
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue