user

package
v3.1.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RepoNameProfilePrivate = ".profile-private"
	RepoNameProfile        = ".profile"
)

Variables

This section is empty.

Functions

func BlockedUsers

func BlockedUsers(ctx *context.Context, blocker *user_model.User)

func BlockedUsersPost

func BlockedUsersPost(ctx *context.Context, blocker *user_model.User)

func FindOwnerProfileReadme

func FindOwnerProfileReadme(ctx *context.Context, doer *user_model.User, optProfileRepoName ...string) (profileDbRepo *repo_model.Repository, profileReadmeBlob *git.Blob)

func GetFilterUserIDByName

func GetFilterUserIDByName(ctx context.Context, name string) string

GetFilterUserIDByName tries to get the user ID from the given username. Before, the "issue filter" passes user ID to query the list, but in many cases, it's impossible to pre-fetch the full user list. So it's better to make it work like GitHub: users could input username directly. Since it only converts the username to ID directly and is only used internally (to search issues), so no permission check is needed. Return values: * "": no filter * "{the-id}": match the id * "(none)": match no issue (due to the user doesn't exist)

func MakeSelfOnTop

func MakeSelfOnTop(doer *user.User, users []*user.User) []*user.User

Types

type PrepareOwnerHeaderResult

type PrepareOwnerHeaderResult struct {
	ProfilePublicRepo        *repo_model.Repository
	ProfilePublicReadmeBlob  *git.Blob
	ProfilePrivateRepo       *repo_model.Repository
	ProfilePrivateReadmeBlob *git.Blob
	HasOrgProfileReadme      bool
}

func RenderUserOrgHeader

func RenderUserOrgHeader(ctx *context.Context) (result *PrepareOwnerHeaderResult, err error)

Source Files

  • block.go
  • header.go
  • helper.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL