fix(web): prefetch also users from attributed_to
This commit is contained in:
parent
597dee934d
commit
1741837bd0
1 changed files with 7 additions and 0 deletions
|
@ -212,6 +212,13 @@ async fn process_activities(
|
|||
);
|
||||
}
|
||||
|
||||
if let Some(uid) = activity.attributed_to().id() {
|
||||
if CACHE.get(&uid).is_none() && !gonna_fetch.contains(&uid) {
|
||||
gonna_fetch.insert(uid.clone());
|
||||
sub_tasks.push(Box::pin(fetch_and_update(FetchKind::User, uid, auth)));
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(uid) = activity.actor().id() {
|
||||
if CACHE.get(&uid).is_none() && !gonna_fetch.contains(&uid) {
|
||||
gonna_fetch.insert(uid.clone());
|
||||
|
|
Loading…
Reference in a new issue