浏览代码

Update Profile model

Daniel Supernault 3 年之前
父节点
当前提交
a73b2f0002
共有 1 个文件被更改,包括 22 次插入1 次删除
  1. 22 1
      app/Profile.php

+ 22 - 1
app/Profile.php

@@ -271,7 +271,28 @@ class Profile extends Model
 						$this->permalink('/followers')
 					]
 				];
-				break;
+			break;
+
+			case 'unlisted':
+				$audience = [
+					'to' => [
+					],
+					'cc' => [
+						'https://www.w3.org/ns/activitystreams#Public',
+						$this->permalink('/followers')
+					]
+				];
+			break;
+
+			case 'private':
+				$audience = [
+					'to' => [
+						$this->permalink('/followers')
+					],
+					'cc' => [
+					]
+				];
+			break;
 		}
 		return $audience;
 	}