Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-25 11:16:11 +01:00

Rename for clearer semantics

This commit is contained in:
erik 2024-04-12 13:58:55 +02:00
parent 94091cc144
commit feca77b040

View file

@ -12,8 +12,7 @@ import (
"code.gitea.io/gitea/services/federation"
)
// ToDo: Consistent Naming, smth like StarLocalAndFollowingRepo
func StarRepoAndFederate(ctx context.Context, doer user.User, repoID int64, star bool) error {
func StarRepoAndSendLikeActivities(ctx context.Context, doer user.User, repoID int64, star bool) error {
if err := repo.StarRepo(ctx, doer.ID, repoID, star); err != nil {
return err
}