diff --git a/internal/db/bundb/list.go b/internal/db/bundb/list.go index 05ea1281c..03dff95e3 100644 --- a/internal/db/bundb/list.go +++ b/internal/db/bundb/list.go @@ -99,7 +99,7 @@ func (l *listDB) CountListsByAccountID(ctx context.Context, accountID string) (i return len(listIDs), err } -func (l *listDB) GetListsWithFollowID(ctx context.Context, followID string) ([]*gtsmodel.List, error) { +func (l *listDB) GetListsContainingFollowID(ctx context.Context, followID string) ([]*gtsmodel.List, error) { listIDs, err := l.getListIDsWithFollowID(ctx, followID) if err != nil { return nil, err diff --git a/internal/db/list.go b/internal/db/list.go index 8ae05da83..4ce0ff988 100644 --- a/internal/db/list.go +++ b/internal/db/list.go @@ -37,8 +37,8 @@ type List interface { // CountListsByAccountID counts the number of lists owned by the given accountID. CountListsByAccountID(ctx context.Context, accountID string) (int, error) - // GetListsWithFollowID gets all lists that contain the given follow with ID. - GetListsWithFollowID(ctx context.Context, followID string) ([]*gtsmodel.List, error) + // GetListsContainingFollowID gets all lists that contain the given follow with ID. + GetListsContainingFollowID(ctx context.Context, followID string) ([]*gtsmodel.List, error) // GetFollowIDsInList returns all the follow IDs contained within given list ID. GetFollowIDsInList(ctx context.Context, listID string, page *paging.Page) ([]string, error)