forked from shadowfacts/shadowfacts.net
Fix wrong forceUpdate parameter in getActor
This commit is contained in:
parent
9777f72773
commit
6a8d8a0501
|
@ -25,7 +25,7 @@ function createActivity(article: Article): Create {
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getActor(url: string, db: Database, forceUpdate: boolean = false): Promise<Actor> {
|
export async function getActor(url: string, db: Database, forceUpdate: boolean = false): Promise<Actor> {
|
||||||
if (forceUpdate) {
|
if (!forceUpdate) {
|
||||||
try {
|
try {
|
||||||
const cached = await getCachedActor(url, db);
|
const cached = await getCachedActor(url, db);
|
||||||
if (cached) return cached;
|
if (cached) return cached;
|
||||||
|
|
Loading…
Reference in New Issue