mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-30 09:56:15 -06:00
rename function to read a bit better
This commit is contained in:
parent
b65fe3ff77
commit
1e7ad8e5cf
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue