mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-26 08:31:43 +02:00
fix: #14112, federation/rules and relays ACP pages not refreshing table properly on changes, basic form validation
This commit is contained in:
@@ -110,8 +110,11 @@ Admin.activitypub.reorderRules = async (req, res) => {
|
||||
helpers.formatApiResponse(200, res, await activitypub.rules.list());
|
||||
};
|
||||
|
||||
Admin.activitypub.addRelay = async (req, res) => {
|
||||
Admin.activitypub.addRelay = async (req, res, next) => {
|
||||
const { url } = req.body;
|
||||
if (!url) {
|
||||
return next();
|
||||
}
|
||||
|
||||
await activitypub.relays.add(url);
|
||||
helpers.formatApiResponse(200, res, await activitypub.relays.list());
|
||||
|
||||
Reference in New Issue
Block a user