MCPcopy Index your code
hub / github.com/gogs/gogs / IsFollowing

Method IsFollowing

internal/database/users.go:1415–1417  ·  view source on GitHub ↗

IsFollowing returns true if the user is following the given user. TODO(unknwon): This is also used in templates, which should be fixed by having a dedicated type `template.User`.

(followID int64)

Source from the content-addressed store, hash-verified

1413// TODO(unknwon): This is also used in templates, which should be fixed by
1414// having a dedicated type `template.User`.
1415func (u *User) IsFollowing(followID int64) bool {
1416 return Handle.Users().IsFollowing(context.TODO(), u.ID, followID)
1417}
1418
1419// IsUserOrgOwner returns true if the user is in the owner team of the given
1420// organization.

Callers 2

usersIsFollowingFunction · 0.45
checkUserFollowingFunction · 0.45

Implementers 1

mailerUserinternal/database/issue_mail.go

Calls 1

UsersMethod · 0.80

Tested by 1

usersIsFollowingFunction · 0.36