File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1086,6 +1086,18 @@ class FederationImpl<TContextData> implements Federation<TContextData> {
1086
1086
const actor = await dispatcher ( context , handle ) ;
1087
1087
if ( actor == null ) return null ;
1088
1088
const logger = getLogger ( [ "fedify" , "federation" , "actor" ] ) ;
1089
+ if ( actor . id == null ) {
1090
+ logger . warn (
1091
+ "Actor dispatcher returned an actor without an id property. " +
1092
+ "Set the property with Context.getActorUri(handle)." ,
1093
+ ) ;
1094
+ } else if ( actor . id . href != context . getActorUri ( handle ) . href ) {
1095
+ logger . warn (
1096
+ "Actor dispatcher returned an actor with an id property that " +
1097
+ "does not match the actor URI. Set the property with " +
1098
+ "Context.getActorUri(handle)." ,
1099
+ ) ;
1100
+ }
1089
1101
if (
1090
1102
this . followingCallbacks != null &&
1091
1103
this . followingCallbacks . dispatcher != null
You can’t perform that action at this time.
0 commit comments