[backend] Cleanup unused service references
This commit is contained in:
parent
dde377f41d
commit
19d6251a2a
2 changed files with 1 additions and 3 deletions
|
@ -20,7 +20,6 @@ public class NoteService(
|
||||||
DatabaseContext db,
|
DatabaseContext db,
|
||||||
UserResolver userResolver,
|
UserResolver userResolver,
|
||||||
IOptionsSnapshot<Config.InstanceSection> config,
|
IOptionsSnapshot<Config.InstanceSection> config,
|
||||||
UserService userSvc,
|
|
||||||
ActivityFetcherService fetchSvc,
|
ActivityFetcherService fetchSvc,
|
||||||
ActivityDeliverService deliverSvc,
|
ActivityDeliverService deliverSvc,
|
||||||
NoteRenderer noteRenderer,
|
NoteRenderer noteRenderer,
|
||||||
|
|
|
@ -20,8 +20,7 @@ public class UserService(
|
||||||
IOptions<Config.InstanceSection> instance,
|
IOptions<Config.InstanceSection> instance,
|
||||||
ILogger<UserService> logger,
|
ILogger<UserService> logger,
|
||||||
DatabaseContext db,
|
DatabaseContext db,
|
||||||
ActivityFetcherService fetchSvc,
|
ActivityFetcherService fetchSvc
|
||||||
IDistributedCache cache
|
|
||||||
) {
|
) {
|
||||||
private (string Username, string? Host) AcctToTuple(string acct) {
|
private (string Username, string? Host) AcctToTuple(string acct) {
|
||||||
if (!acct.StartsWith("acct:")) throw new GracefulException(HttpStatusCode.BadRequest, "Invalid query");
|
if (!acct.StartsWith("acct:")) throw new GracefulException(HttpStatusCode.BadRequest, "Invalid query");
|
||||||
|
|
Loading…
Add table
Reference in a new issue