fix: minor fixes for yukimochi/Activity-Relay compatibility

This commit is contained in:
Julian Lam
2025-08-26 14:11:51 -04:00
parent b1dbb19c10
commit 28b63891d4
2 changed files with 9 additions and 1 deletions

View File

@@ -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();
});
}); });
}; };

View File

@@ -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']),