fix: allow actor assertion of loopback actors depending on ACP setting

This commit is contained in:
Julian Lam
2025-02-28 13:55:52 -05:00
parent 98aafaaff8
commit 73aaa990fb

View File

@@ -73,7 +73,9 @@ Actors.assert = async (ids, options = {}) => {
}
// Filter out loopback uris
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) {