user

package
v0.0.0-...-c7a0b58 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 FindUserProfileReadme

func FindUserProfileReadme(ctx *context.Context, doer *user_model.User) (profileDbRepo *repo_model.Repository, profileGitRepo *git.Repository, profileReadmeBlob *git.Blob, profileClose func())

func GetFilterUserIDByName

func GetFilterUserIDByName(ctx context.Context, name string) optional.Option[int64]

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: * nil: no filter * some(id): match the id, the id could be -1 to match the issues without assignee * some(NonExistingID): match no issue (due to the user doesn't exist)

func LoadHeaderCount

func LoadHeaderCount(ctx *context.Context) error

func MakeSelfOnTop

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

func PrepareContextForProfileBigAvatar

func PrepareContextForProfileBigAvatar(ctx *context.Context)

PrepareContextForProfileBigAvatar set the context for big avatar view on the profile page

func RenderOrgHeader

func RenderOrgHeader(ctx *context.Context) error

func RenderUserHeader

func RenderUserHeader(ctx *context.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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