1
0
Fork 0
forked from mirror/pixelfed

Update AP Helpers

This commit is contained in:
Daniel Supernault 2019-06-24 22:44:01 -06:00
parent abdac129ae
commit 8ad46b8c32
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -337,6 +337,11 @@ class Helpers {
} }
} }
public static function statusFetch($url)
{
return self::statusFirstOrFetch($url);
}
public static function importNoteAttachment($data, Status $status) public static function importNoteAttachment($data, Status $status)
{ {
if(self::verifyAttachments($data) == false) { if(self::verifyAttachments($data) == false) {
@ -435,6 +440,11 @@ class Helpers {
return $profile; return $profile;
} }
public static function profileFetch($url)
{
return self::profileFirstOrNew($url);
}
public static function sendSignedObject($senderProfile, $url, $body) public static function sendSignedObject($senderProfile, $url, $body)
{ {
abort_if(!self::validateUrl($url), 400); abort_if(!self::validateUrl($url), 400);