mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 14:53:34 +01:00
Use federated staring func
This commit is contained in:
parent
8579b7f7bb
commit
511ef0bf5b
1 changed files with 2 additions and 1 deletions
|
@ -332,7 +332,8 @@ func ActionWatch(watch bool) func(ctx *context.Context) {
|
||||||
|
|
||||||
func ActionStar(star bool) func(ctx *context.Context) {
|
func ActionStar(star bool) func(ctx *context.Context) {
|
||||||
return func(ctx *context.Context) {
|
return func(ctx *context.Context) {
|
||||||
err := repo_model.StarRepo(ctx, ctx.Doer.ID, ctx.Repo.Repository.ID, star)
|
err := repo_service.StarRepoAndFederate(ctx, *ctx.Doer, ctx.Repo.Repository.ID, star)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.ServerError(fmt.Sprintf("Action (star, %t)", star), err)
|
ctx.ServerError(fmt.Sprintf("Action (star, %t)", star), err)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue