mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: allow actor assertion of loopback actors depending on ACP setting
This commit is contained in:
@@ -73,7 +73,9 @@ Actors.assert = async (ids, options = {}) => {
|
||||
}
|
||||
|
||||
// Filter out loopback uris
|
||||
ids = ids.filter(uri => uri !== 'loopback' && new URL(uri).host !== nconf.get('url_parsed').host);
|
||||
if (!meta.config.activitypubAllowLoopback) {
|
||||
ids = ids.filter(uri => uri !== 'loopback' && new URL(uri).host !== nconf.get('url_parsed').host);
|
||||
}
|
||||
|
||||
// Only assert those who haven't been seen recently (configurable), unless update flag passed in (force refresh)
|
||||
if (!options.update) {
|
||||
|
||||
Reference in New Issue
Block a user