Improve PerformActivity error logging
This commit is contained in:
parent
37e7f339bc
commit
f32912d147
1 changed files with 2 additions and 2 deletions
|
@ -44,10 +44,10 @@ public class ActivityHandlerService(
|
||||||
//TODO: test if this actually works
|
//TODO: test if this actually works
|
||||||
if (activity.Object is ASActivity { Type: ASActivity.Types.Follow, Object: not null } undoActivity)
|
if (activity.Object is ASActivity { Type: ASActivity.Types.Follow, Object: not null } undoActivity)
|
||||||
return Unfollow(undoActivity.Object, activity.Actor);
|
return Unfollow(undoActivity.Object, activity.Actor);
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException("Unsupported undo operation");
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException($"Activity type {activity.Type} is unknown");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue