mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-25 05:29:07 +01:00
Always signToActivityPubGet
This commit is contained in:
parent
680ec8cd89
commit
1ef1907f4b
@ -138,9 +138,6 @@ id: 'aid'
|
|||||||
# Proxy remote files (default: false)
|
# Proxy remote files (default: false)
|
||||||
#proxyRemoteFiles: true
|
#proxyRemoteFiles: true
|
||||||
|
|
||||||
# Sign to ActivityPub GET request (default: false)
|
|
||||||
#signToActivityPubGet: true
|
|
||||||
|
|
||||||
#allowedPrivateNetworks: [
|
#allowedPrivateNetworks: [
|
||||||
# '127.0.0.1/32'
|
# '127.0.0.1/32'
|
||||||
#]
|
#]
|
||||||
|
@ -63,8 +63,6 @@ export type Source = {
|
|||||||
|
|
||||||
mediaProxy?: string;
|
mediaProxy?: string;
|
||||||
proxyRemoteFiles?: boolean;
|
proxyRemoteFiles?: boolean;
|
||||||
|
|
||||||
signToActivityPubGet?: boolean;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -76,7 +76,7 @@ export default class Resolver {
|
|||||||
throw new Error('Instance is not allowed');
|
throw new Error('Instance is not allowed');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.signToActivityPubGet && !this.user) {
|
if (!this.user) {
|
||||||
this.user = await getInstanceActor();
|
this.user = await getInstanceActor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user