Skip to content

Commit

Permalink
trust link appendix
Browse files Browse the repository at this point in the history
  • Loading branch information
JackBekket committed Oct 18, 2022
1 parent ac15ec8 commit b2441d9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,4 +379,19 @@ func WhoIsAddress(session *passport.PassportSession,address_to_check common.Addr
nickname := passport.UserName
return nickname,nil

}

// generate link to trust page
func TrustUserLink(tgid_string string, friend_tg_id string, friend_username string) (string) {
//http://localhost:3000/trust?user_tg_id=1337&friend_tg_id=1997&friend_user_name=sbekket
loadEnv()
baseURL_ := myenv["BASEURL"]
trustURL := "/trust"
tg_id_query_trust := "?user_tg_id="
// tg_username_query_trust := "&user_tg_name="
to_id_query:= "&friend_tg_id="
to_username_query := "&friend_user_name="
link := baseURL_ + trustURL + tg_id_query_trust + tgid_string + to_id_query + friend_tg_id + to_username_query + "@" + friend_username
return link

}

0 comments on commit b2441d9

Please sign in to comment.