mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
fix: do not use cached instances when adding trust
This commit is contained in:
parent
aa50c63b74
commit
854b6a1383
1 changed files with 2 additions and 2 deletions
|
@ -139,7 +139,7 @@ const instancesController = {
|
|||
const [ user, instance_url ] = url.replace(/^@/,'').split('@')
|
||||
log.debug('[FEDI] Adds user: %s and instance: %s because url was: %s', user, instance_url, url)
|
||||
try {
|
||||
instance = await getInstance('https://' + instance_url)
|
||||
instance = await getInstance('https://' + instance_url, true)
|
||||
if (!instance) {
|
||||
return res.sendStatus(404)
|
||||
}
|
||||
|
@ -152,7 +152,7 @@ const instancesController = {
|
|||
}
|
||||
|
||||
log.info(`[FEDI] Adding trusted instance ${instance_url} and actor ${actor_url.href}...`)
|
||||
const actor = await getActor(actor_url.href, instance)
|
||||
const actor = await getActor(actor_url.href, instance, true)
|
||||
log.debug('[FEDI] Actor %s', actor)
|
||||
await actor.update({ trusted: true })
|
||||
return res.json(actor)
|
||||
|
|
Loading…
Reference in a new issue