mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update AP Helpers
This commit is contained in:
parent
abdac129ae
commit
8ad46b8c32
1 changed files with 10 additions and 0 deletions
|
@ -337,6 +337,11 @@ class Helpers {
|
|||
}
|
||||
}
|
||||
|
||||
public static function statusFetch($url)
|
||||
{
|
||||
return self::statusFirstOrFetch($url);
|
||||
}
|
||||
|
||||
public static function importNoteAttachment($data, Status $status)
|
||||
{
|
||||
if(self::verifyAttachments($data) == false) {
|
||||
|
@ -435,6 +440,11 @@ class Helpers {
|
|||
return $profile;
|
||||
}
|
||||
|
||||
public static function profileFetch($url)
|
||||
{
|
||||
return self::profileFirstOrNew($url);
|
||||
}
|
||||
|
||||
public static function sendSignedObject($senderProfile, $url, $body)
|
||||
{
|
||||
abort_if(!self::validateUrl($url), 400);
|
||||
|
|
Loading…
Reference in a new issue