@@ -33,7 +33,7 @@ class Application extends Actor {
33
33
*
34
34
* @context http://joinmastodon.org/ns#discoverable
35
35
*
36
- * @var boolean
36
+ * @var bool
37
37
*/
38
38
protected $ discoverable = false ;
39
39
@@ -42,10 +42,21 @@ class Application extends Actor {
42
42
*
43
43
* @context http://joinmastodon.org/ns#indexable
44
44
*
45
- * @var boolean
45
+ * @var bool
46
46
*/
47
47
protected $ indexable = false ;
48
48
49
+ /**
50
+ * Whether the Application manually approves followers.
51
+ *
52
+ * @see https://docs.joinmastodon.org/spec/activitypub/#as
53
+ *
54
+ * @context as:manuallyApprovesFollowers
55
+ *
56
+ * @var bool
57
+ */
58
+ protected $ manually_approves_followers = true ;
59
+
49
60
/**
50
61
* List of software capabilities implemented by the Application.
51
62
*
@@ -61,22 +72,34 @@ class Application extends Actor {
61
72
);
62
73
63
74
/**
64
- * Returns the type of the object.
75
+ * Set Application as invisible.
76
+ *
77
+ * @see https://litepub.social/
78
+ *
79
+ * @var bool
80
+ */
81
+ protected $ invisible = true ;
82
+
83
+ /**
84
+ * The type of the Actor.
65
85
*
66
- * @return string The type of the object.
86
+ * @var string
67
87
*/
68
- public function get_type () {
69
- return 'Application ' ;
70
- }
88
+ protected $ type = 'Application ' ;
71
89
72
90
/**
73
- * Returns whether the Application manually approves followers .
91
+ * The Username .
74
92
*
75
- * @return true Whether the Application manually approves followers.
93
+ * @var string
76
94
*/
77
- public function get_manually_approves_followers () {
78
- return true ;
79
- }
95
+ protected $ name = 'application ' ;
96
+
97
+ /**
98
+ * The preferred username.
99
+ *
100
+ * @var string
101
+ */
102
+ protected $ preferred_username = 'application ' ;
80
103
81
104
/**
82
105
* Returns the ID of the Application.
@@ -105,24 +128,6 @@ public function get_alternate_url() {
105
128
return $ this ->get_id ();
106
129
}
107
130
108
- /**
109
- * Get the Username.
110
- *
111
- * @return string The Username.
112
- */
113
- public function get_name () {
114
- return 'application ' ;
115
- }
116
-
117
- /**
118
- * Get the preferred username.
119
- *
120
- * @return string The preferred username.
121
- */
122
- public function get_preferred_username () {
123
- return $ this ->get_name ();
124
- }
125
-
126
131
/**
127
132
* Get the User-Icon.
128
133
*
0 commit comments