Skip to content

Commit

Permalink
fix allow follow req logic
Browse files Browse the repository at this point in the history
  • Loading branch information
krustowski committed Sep 18, 2024
1 parent 01c529b commit 3ce5e18
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
#

APP_NAME=littr
APP_VERSION=0.40.8
APP_VERSION=0.40.9
GOLANG_VERSION=1.23
2 changes: 1 addition & 1 deletion api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "MIT",
"url": "https://github.com/krustowski/littr/blob/master/LICENSE"
},
"version": "0.40.8"
"version": "0.40.9"
},
"host": "www.littr.eu",
"basePath": "/api/v1",
Expand Down
2 changes: 1 addition & 1 deletion pkg/backend/router.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @title littr
// @version 0.40.8
// @version 0.40.9
// @description a simple nanoblogging platform as PWA built on go-app framework
// @termsOfService https://littr.eu/tos

Expand Down
4 changes: 2 additions & 2 deletions pkg/frontend/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ func (c *usersContent) onClickAllow(ctx app.Context, e app.Event) {

input := callInput{
Method: "PATCH",
Url: "/api/v1/users/" + c.user.Nickname + "/request",
Url: "/api/v1/users/" + c.user.Nickname + "/lists",
Data: payload,
CallerID: c.user.Nickname,
PageNo: 0,
Expand Down Expand Up @@ -667,7 +667,7 @@ func (c *usersContent) onClickAllow(ctx app.Context, e app.Event) {

input2 := callInput{
Method: "PATCH",
Url: "/api/v1/users/" + c.user.Nickname + "/lists",
Url: "/api/v1/users/" + nick + "/lists",
Data: payload2,
CallerID: c.user.Nickname,
PageNo: 0,
Expand Down

0 comments on commit 3ce5e18

Please sign in to comment.