Fix wrong forceUpdate parameter in getActor

This commit is contained in:
Shadowfacts 2019-04-05 15:23:24 +00:00
parent 9777f72773
commit 6a8d8a0501
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ function createActivity(article: Article): Create {
}
export async function getActor(url: string, db: Database, forceUpdate: boolean = false): Promise<Actor> {
if (forceUpdate) {
if (!forceUpdate) {
try {
const cached = await getCachedActor(url, db);
if (cached) return cached;