mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-14 07:51:01 +00:00
Don't retrieve user info from blocked instances
This commit is contained in:
parent
8c098def61
commit
2804a490ed
1 changed files with 3 additions and 0 deletions
|
@ -45,6 +45,9 @@ impl Actor for RemoteFetchActor {
|
|||
RemoteUserFound(user) => match self.conn.get() {
|
||||
Ok(conn) => {
|
||||
let conn = DbConn(conn);
|
||||
if user.get_instance(&conn).map_or(false, |instance| instance.blocked) {
|
||||
return;
|
||||
}
|
||||
// Don't call these functions in parallel
|
||||
// for the case database connections limit is too small
|
||||
fetch_and_cache_articles(&user, &conn);
|
||||
|
|
Loading…
Reference in a new issue