mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-28 23:42:28 +00:00
Rename for clearer semantics
This commit is contained in:
parent
94091cc144
commit
feca77b040
|
@ -12,8 +12,7 @@ import (
|
||||||
"code.gitea.io/gitea/services/federation"
|
"code.gitea.io/gitea/services/federation"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ToDo: Consistent Naming, smth like StarLocalAndFollowingRepo
|
func StarRepoAndSendLikeActivities(ctx context.Context, doer user.User, repoID int64, star bool) error {
|
||||||
func StarRepoAndFederate(ctx context.Context, doer user.User, repoID int64, star bool) error {
|
|
||||||
if err := repo.StarRepo(ctx, doer.ID, repoID, star); err != nil {
|
if err := repo.StarRepo(ctx, doer.ID, repoID, star); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue