Daniel Supernault 6 anni fa
parent
commit
8ad46b8c32
1 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  1. 10 0
      app/Util/ActivityPub/Helpers.php

+ 10 - 0
app/Util/ActivityPub/Helpers.php

@@ -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);