Skip to content
Snippets Groups Projects
Commit a68f4b31 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

add actors specific properties

parent e3344782
No related merge requests found
...@@ -40,4 +40,16 @@ class BaseObject extends Base ...@@ -40,4 +40,16 @@ class BaseObject extends Base
'duration' => null, 'duration' => null,
]; ];
} }
public function asActor() {
foreach(['inbox', 'outbox', 'following', 'followers', 'liked',
'streams', 'preferredUsername', 'endpoints', 'proxyUrl',
'oautAuthorizationEndpoint', 'oauthTokenEndpoint',
'provideClientKey', 'signClientKey',
'sharedInbox'] as $attrib)
$this->_attribs[$attrib] = null;
return $this;
}
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment