rename function to read a bit better

This commit is contained in:
kim 2024-09-16 17:16:54 +01:00
commit 1e7ad8e5cf
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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)