mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-23 16:51:14 +02:00
fix: minor fixes for yukimochi/Activity-Relay compatibility
This commit is contained in:
@@ -91,6 +91,10 @@ define('admin/settings/activitypub', [
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modal.on('shown.bs.modal', function () {
|
||||||
|
modal.find('input').focus();
|
||||||
|
});
|
||||||
|
|
||||||
// category switcher
|
// category switcher
|
||||||
categorySelector.init(modal.find('[component="category-selector"]'), {
|
categorySelector.init(modal.find('[component="category-selector"]'), {
|
||||||
onSelect: function (selectedCategory) {
|
onSelect: function (selectedCategory) {
|
||||||
@@ -128,6 +132,10 @@ define('admin/settings/activitypub', [
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modal.on('shown.bs.modal', function () {
|
||||||
|
modal.find('input').focus();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ ActivityPub._constants = Object.freeze({
|
|||||||
],
|
],
|
||||||
acceptableActorTypes: new Set(['Application', 'Organization', 'Person', 'Service']),
|
acceptableActorTypes: new Set(['Application', 'Organization', 'Person', 'Service']),
|
||||||
acceptableGroupTypes: new Set(['Group']),
|
acceptableGroupTypes: new Set(['Group']),
|
||||||
requiredActorProps: ['inbox', 'outbox'],
|
requiredActorProps: ['inbox'],
|
||||||
acceptedProtocols: ['https', ...(process.env.CI === 'true' ? ['http'] : [])],
|
acceptedProtocols: ['https', ...(process.env.CI === 'true' ? ['http'] : [])],
|
||||||
acceptable: {
|
acceptable: {
|
||||||
customFields: new Set(['PropertyValue', 'Link', 'Note']),
|
customFields: new Set(['PropertyValue', 'Link', 'Note']),
|
||||||
|
|||||||
Reference in New Issue
Block a user