Use u instead of url because it collides with url package
This commit is contained in:
parent
ee78ca96f3
commit
79c44a5b0b
|
|
@ -318,8 +318,8 @@ func performCommands(sub microsub.Microsub, commands []string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(commands) == 2 && commands[0] == "preview" {
|
if len(commands) == 2 && commands[0] == "preview" {
|
||||||
url := commands[1]
|
u := commands[1]
|
||||||
timeline, err := sub.PreviewURL(url)
|
timeline, err := sub.PreviewURL(u)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("An error occurred: %s\n", err)
|
log.Fatalf("An error occurred: %s\n", err)
|
||||||
|
|
@ -342,8 +342,8 @@ func performCommands(sub microsub.Microsub, commands []string) {
|
||||||
|
|
||||||
if len(commands) == 3 && commands[0] == "follow" {
|
if len(commands) == 3 && commands[0] == "follow" {
|
||||||
uid := commands[1]
|
uid := commands[1]
|
||||||
url := commands[2]
|
u := commands[2]
|
||||||
_, err := sub.FollowURL(uid, url)
|
_, err := sub.FollowURL(uid, u)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("An error occurred: %s\n", err)
|
log.Fatalf("An error occurred: %s\n", err)
|
||||||
}
|
}
|
||||||
|
|
@ -352,8 +352,8 @@ func performCommands(sub microsub.Microsub, commands []string) {
|
||||||
|
|
||||||
if len(commands) == 3 && commands[0] == "unfollow" {
|
if len(commands) == 3 && commands[0] == "unfollow" {
|
||||||
uid := commands[1]
|
uid := commands[1]
|
||||||
url := commands[2]
|
u := commands[2]
|
||||||
err := sub.UnfollowURL(uid, url)
|
err := sub.UnfollowURL(uid, u)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("An error occurred: %s\n", err)
|
log.Fatalf("An error occurred: %s\n", err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user