Commit c950e0cd authored by Zot's avatar Zot Committed by Mario

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 7cc1c3a1
......@@ -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'
]);
}
......@@ -1064,3 +1065,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