Commit 4af0a557 authored by Zot's avatar Zot

provide a system 'allowed' for pubcrawl to match the system setting for other...

provide a system 'allowed' for pubcrawl to match the system setting for other protocols, which is inherited by all newly created channels and doesn't require them to adjust addon settings to communicate with those networks.
parent 542782b8
......@@ -38,7 +38,8 @@ function pubcrawl_load() {
'personal_xrd' => 'pubcrawl_personal_xrd',
'queue_deliver' => 'pubcrawl_queue_deliver',
'import_author' => 'pubcrawl_import_author',
'channel_protocols' => 'pubcrawl_channel_protocols'
'channel_protocols' => 'pubcrawl_channel_protocols',
'create_identity' => 'pubcrawl_create_identity'
]);
}
......@@ -1063,3 +1064,10 @@ function pubcrawl_feature_settings(&$s) {
}
function pubcrawl_create_identity($b) {
if(get_config('system','activitypub_allowed')) {
set_pconfig($b,'system','activitypub_allowed','1');
}
}
Markdown is supported
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