[backend/core] Catch failed resolves in ImportFollowingAsync
This commit is contained in:
parent
ceb8da8f3d
commit
4d85fce1cf
1 changed files with 2 additions and 3 deletions
|
@ -36,16 +36,15 @@ public class ImportExportService(
|
|||
{
|
||||
foreach (var fqn in fqns)
|
||||
{
|
||||
var followee = await userResolver.ResolveAsync($"acct:{fqn}", ResolveFlags.Acct);
|
||||
|
||||
try
|
||||
{
|
||||
var followee = await userResolver.ResolveAsync($"acct:{fqn}", ResolveFlags.Acct);
|
||||
await userSvc.FollowUserAsync(user, followee);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.LogWarning("Failed to import follow {followee} for user {follower}: {error}",
|
||||
followee.Id, user.Id, e);
|
||||
fqn, user.Id, e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue