diff --git a/README.md b/README.md index a60f93f..91a1634 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ +# Do not use this version! + +Just a development fork of [mattn/go-mastodon](https://github.com/mattn/go-mastodon), so use it instead. + + # go-mastodon [![Build Status](https://github.com/mattn/go-mastodon/workflows/test/badge.svg?branch=master)](https://github.com/mattn/go-mastodon/actions?query=workflow%3Atest) @@ -18,7 +23,7 @@ import ( "fmt" "log" - "github.com/mattn/go-mastodon" + "github.com/RasmusLindroth/go-mastodon" ) func main() { @@ -46,7 +51,7 @@ import ( "fmt" "log" - "github.com/mattn/go-mastodon" + "github.com/RasmusLindroth/go-mastodon" ) func main() { diff --git a/cmd/mstdn/cmd_account.go b/cmd/mstdn/cmd_account.go index 23083c2..c4b2c97 100644 --- a/cmd/mstdn/cmd_account.go +++ b/cmd/mstdn/cmd_account.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/mattn/go-mastodon" + "github.com/RasmusLindroth/go-mastodon" "github.com/urfave/cli" ) diff --git a/cmd/mstdn/cmd_delete.go b/cmd/mstdn/cmd_delete.go index 092bad6..15fae2a 100644 --- a/cmd/mstdn/cmd_delete.go +++ b/cmd/mstdn/cmd_delete.go @@ -4,7 +4,7 @@ import ( "context" "errors" - "github.com/mattn/go-mastodon" + "github.com/RasmusLindroth/go-mastodon" "github.com/urfave/cli" ) diff --git a/cmd/mstdn/cmd_follow.go b/cmd/mstdn/cmd_follow.go index e064f03..5fda80c 100644 --- a/cmd/mstdn/cmd_follow.go +++ b/cmd/mstdn/cmd_follow.go @@ -4,7 +4,7 @@ import ( "context" "errors" - "github.com/mattn/go-mastodon" + "github.com/RasmusLindroth/go-mastodon" "github.com/urfave/cli" ) diff --git a/cmd/mstdn/cmd_followers.go b/cmd/mstdn/cmd_followers.go index bfacf8b..0a7ceab 100644 --- a/cmd/mstdn/cmd_followers.go +++ b/cmd/mstdn/cmd_followers.go @@ -5,7 +5,7 @@ import ( "fmt" "time" - "github.com/mattn/go-mastodon" + "github.com/RasmusLindroth/go-mastodon" "github.com/urfave/cli" ) diff --git a/cmd/mstdn/cmd_instance.go b/cmd/mstdn/cmd_instance.go index 5932c68..3b3a13e 100644 --- a/cmd/mstdn/cmd_instance.go +++ b/cmd/mstdn/cmd_instance.go @@ -5,7 +5,7 @@ import ( "fmt" "sort" - "github.com/mattn/go-mastodon" + "github.com/RasmusLindroth/go-mastodon" "github.com/urfave/cli" ) diff --git a/cmd/mstdn/cmd_instance_activity.go b/cmd/mstdn/cmd_instance_activity.go index 199ba99..4ce72af 100644 --- a/cmd/mstdn/cmd_instance_activity.go +++ b/cmd/mstdn/cmd_instance_activity.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/mattn/go-mastodon" + "github.com/RasmusLindroth/go-mastodon" "github.com/urfave/cli" ) diff --git a/cmd/mstdn/cmd_instance_peers.go b/cmd/mstdn/cmd_instance_peers.go index 7a73d1d..6182981 100644 --- a/cmd/mstdn/cmd_instance_peers.go +++ b/cmd/mstdn/cmd_instance_peers.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/mattn/go-mastodon" + "github.com/RasmusLindroth/go-mastodon" "github.com/urfave/cli" ) diff --git a/cmd/mstdn/cmd_notification.go b/cmd/mstdn/cmd_notification.go index b32ba4e..9cfa510 100644 --- a/cmd/mstdn/cmd_notification.go +++ b/cmd/mstdn/cmd_notification.go @@ -4,8 +4,8 @@ import ( "context" "fmt" + "github.com/RasmusLindroth/go-mastodon" "github.com/fatih/color" - "github.com/mattn/go-mastodon" "github.com/urfave/cli" ) diff --git a/cmd/mstdn/cmd_search.go b/cmd/mstdn/cmd_search.go index 6d7e81b..af8242f 100644 --- a/cmd/mstdn/cmd_search.go +++ b/cmd/mstdn/cmd_search.go @@ -5,7 +5,7 @@ import ( "errors" "fmt" - "github.com/mattn/go-mastodon" + "github.com/RasmusLindroth/go-mastodon" "github.com/urfave/cli" ) diff --git a/cmd/mstdn/cmd_stream.go b/cmd/mstdn/cmd_stream.go index 9626769..18580db 100644 --- a/cmd/mstdn/cmd_stream.go +++ b/cmd/mstdn/cmd_stream.go @@ -9,7 +9,7 @@ import ( "strings" "text/template" - "github.com/mattn/go-mastodon" + "github.com/RasmusLindroth/go-mastodon" "github.com/urfave/cli" ) diff --git a/cmd/mstdn/cmd_stream_test.go b/cmd/mstdn/cmd_stream_test.go index b3b37c7..62dd655 100644 --- a/cmd/mstdn/cmd_stream_test.go +++ b/cmd/mstdn/cmd_stream_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/mattn/go-mastodon" + "github.com/RasmusLindroth/go-mastodon" ) func TestCmdStream(t *testing.T) { diff --git a/cmd/mstdn/cmd_test.go b/cmd/mstdn/cmd_test.go index 14043c3..e77f07b 100644 --- a/cmd/mstdn/cmd_test.go +++ b/cmd/mstdn/cmd_test.go @@ -5,7 +5,7 @@ import ( "net/http" "net/http/httptest" - "github.com/mattn/go-mastodon" + "github.com/RasmusLindroth/go-mastodon" "github.com/urfave/cli" ) diff --git a/cmd/mstdn/cmd_timeline.go b/cmd/mstdn/cmd_timeline.go index c610966..9d8f9c5 100644 --- a/cmd/mstdn/cmd_timeline.go +++ b/cmd/mstdn/cmd_timeline.go @@ -3,7 +3,7 @@ package main import ( "context" - "github.com/mattn/go-mastodon" + "github.com/RasmusLindroth/go-mastodon" "github.com/urfave/cli" ) diff --git a/cmd/mstdn/cmd_toot.go b/cmd/mstdn/cmd_toot.go index 7c2ee63..0289b35 100644 --- a/cmd/mstdn/cmd_toot.go +++ b/cmd/mstdn/cmd_toot.go @@ -5,7 +5,7 @@ import ( "errors" "fmt" - "github.com/mattn/go-mastodon" + "github.com/RasmusLindroth/go-mastodon" "github.com/urfave/cli" ) diff --git a/cmd/mstdn/cmd_upload.go b/cmd/mstdn/cmd_upload.go index 15f912e..5324284 100644 --- a/cmd/mstdn/cmd_upload.go +++ b/cmd/mstdn/cmd_upload.go @@ -5,7 +5,7 @@ import ( "errors" "fmt" - "github.com/mattn/go-mastodon" + "github.com/RasmusLindroth/go-mastodon" "github.com/urfave/cli" ) diff --git a/cmd/mstdn/main.go b/cmd/mstdn/main.go index 141a364..7629270 100644 --- a/cmd/mstdn/main.go +++ b/cmd/mstdn/main.go @@ -14,8 +14,8 @@ import ( "runtime" "strings" + "github.com/RasmusLindroth/go-mastodon" "github.com/fatih/color" - "github.com/mattn/go-mastodon" "github.com/mattn/go-tty" "github.com/urfave/cli" "golang.org/x/net/html" diff --git a/example_test.go b/example_test.go index a25a3ca..32ea5fb 100644 --- a/example_test.go +++ b/example_test.go @@ -6,7 +6,7 @@ import ( "log" "time" - "github.com/mattn/go-mastodon" + "github.com/RasmusLindroth/go-mastodon" ) func ExampleRegisterApp() { diff --git a/go.mod b/go.mod index 0616e46..af997fa 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/mattn/go-mastodon +module github.com/RasmusLindroth/go-mastodon go 1.12 @@ -6,7 +6,7 @@ require ( github.com/PuerkitoBio/goquery v1.8.0 github.com/cpuguy83/go-md2man/v2 v2.0.1 // indirect github.com/fatih/color v1.13.0 - github.com/gorilla/websocket v1.4.2 + github.com/gorilla/websocket v1.5.0 github.com/mattn/go-colorable v0.1.11 // indirect github.com/mattn/go-tty v0.0.3 github.com/tomnomnom/linkheader v0.0.0-20180905144013-02ca5825eb80 diff --git a/go.sum b/go.sum index 646b092..69b10a4 100644 --- a/go.sum +++ b/go.sum @@ -8,8 +8,8 @@ github.com/cpuguy83/go-md2man/v2 v2.0.1 h1:r/myEWzV9lfsM1tFLgDyu0atFtJ1fXn261LKY github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc= -github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= +github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.11 h1:nQ+aFkoE2TMGc0b68U2OKSexC+eq46+XwZzWXHRmPYs=