Browse Source

Switched from RasmusLindroth/go-mastodon to blacklight/go-mastodon

The new fork has the required ContentType field in the Toot struct to
support Markdown posts from Pleroma/Akkoma instances.
pull/289/head
Fabio Manganiello 4 months ago
parent
commit
bfa06a58c5
No known key found for this signature in database
GPG Key ID: D90FBA7F76362774
  1. 2
      api/feed.go
  2. 2
      api/item.go
  3. 2
      api/poll.go
  4. 2
      api/status.go
  5. 2
      api/stream.go
  6. 2
      api/tags.go
  7. 2
      api/types.go
  8. 2
      api/user.go
  9. 2
      auth/add.go
  10. 2
      feed/feed.go
  11. 3
      go.mod
  12. 2
      go.sum
  13. 2
      ui/commands.go
  14. 2
      ui/composeview.go
  15. 2
      ui/feed.go
  16. 2
      ui/input.go
  17. 2
      ui/item.go
  18. 2
      ui/item_list.go
  19. 2
      ui/item_status.go
  20. 2
      ui/item_tag.go
  21. 2
      ui/media.go
  22. 2
      ui/pollview.go
  23. 2
      ui/preferenceview.go
  24. 2
      ui/tutview.go
  25. 2
      ui/view.go
  26. 2
      ui/voteview.go
  27. 2
      util/util.go

2
api/feed.go

@ -4,7 +4,7 @@ import (
"context"
"strings"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
"github.com/RasmusLindroth/tut/config"
)

2
api/item.go

@ -4,7 +4,7 @@ import (
"strings"
"sync"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
"github.com/RasmusLindroth/tut/config"
"github.com/RasmusLindroth/tut/util"
"golang.org/x/exp/slices"

2
api/poll.go

@ -3,7 +3,7 @@ package api
import (
"context"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
)
func (ac *AccountClient) Vote(poll *mastodon.Poll, choices ...int) (*mastodon.Poll, error) {

2
api/status.go

@ -4,7 +4,7 @@ import (
"context"
"fmt"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
"github.com/RasmusLindroth/tut/util"
)

2
api/stream.go

@ -4,7 +4,7 @@ import (
"context"
"sync"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
)
type MastodonType uint

2
api/tags.go

@ -4,7 +4,7 @@ import (
"context"
"errors"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
)
func (ac *AccountClient) FollowTag(tag string) error {

2
api/types.go

@ -1,6 +1,6 @@
package api
import "github.com/RasmusLindroth/go-mastodon"
import "github.com/blacklight/go-mastodon"
type RequestData struct {
MinID mastodon.ID

2
api/user.go

@ -4,7 +4,7 @@ import (
"context"
"fmt"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
)
func (ac *AccountClient) GetUserByID(id mastodon.ID) (Item, error) {

2
auth/add.go

@ -8,7 +8,7 @@ import (
"os"
"strings"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
"github.com/RasmusLindroth/tut/util"
)

2
feed/feed.go

@ -8,7 +8,7 @@ import (
"sync"
"time"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
"github.com/RasmusLindroth/tut/api"
"github.com/RasmusLindroth/tut/config"
"golang.org/x/exp/slices"

3
go.mod

@ -3,9 +3,9 @@ module github.com/RasmusLindroth/tut
go 1.18
require (
github.com/RasmusLindroth/go-mastodon v0.0.21
github.com/adrg/xdg v0.4.0
github.com/atotto/clipboard v0.1.4
github.com/blacklight/go-mastodon v0.0.23
github.com/gdamore/tcell/v2 v2.5.4
github.com/gen2brain/beeep v0.0.0-20220909211152-5a9ec94374f6
github.com/gobwas/glob v0.2.3
@ -21,6 +21,7 @@ require (
)
require (
github.com/RasmusLindroth/go-mastodon v0.0.21 // indirect
github.com/aymerick/douceur v0.2.0 // indirect
github.com/gdamore/encoding v1.0.0 // indirect
github.com/go-toast/toast v0.0.0-20190211030409-01e6764cf0a4 // indirect

2
go.sum

@ -6,6 +6,8 @@ github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z
github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI=
github.com/aymerick/douceur v0.2.0 h1:Mv+mAeH1Q+n9Fr+oyamOlAkUNPWPlA8PPGR0QAaYuPk=
github.com/aymerick/douceur v0.2.0/go.mod h1:wlT5vV2O3h55X9m7iVYN0TBM0NH/MmbLnd30/FjWUq4=
github.com/blacklight/go-mastodon v0.0.23 h1:gU2FMkXAQYz505SXCe4t3N/b1HwsobEEb9VpAossqgQ=
github.com/blacklight/go-mastodon v0.0.23/go.mod h1:xXQxOPtM05cbeq/p5eBPFjawo6520+wdamVa7MxLQwo=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=

2
ui/commands.go

@ -5,7 +5,7 @@ import (
"os"
"strconv"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
"github.com/RasmusLindroth/tut/api"
"github.com/RasmusLindroth/tut/config"
"github.com/RasmusLindroth/tut/util"

2
ui/composeview.go

@ -8,7 +8,7 @@ import (
"strings"
"time"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
"github.com/RasmusLindroth/tut/api"
"github.com/RasmusLindroth/tut/config"
"github.com/RasmusLindroth/tut/util"

2
ui/feed.go

@ -4,7 +4,7 @@ import (
"fmt"
"strconv"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
"github.com/RasmusLindroth/tut/api"
"github.com/RasmusLindroth/tut/config"
"github.com/RasmusLindroth/tut/feed"

2
ui/input.go

@ -6,7 +6,7 @@ import (
"sync"
"time"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
"github.com/RasmusLindroth/tut/api"
"github.com/RasmusLindroth/tut/config"
"github.com/RasmusLindroth/tut/util"

2
ui/item.go

@ -5,7 +5,7 @@ import (
"strings"
"time"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
"github.com/RasmusLindroth/tut/api"
"github.com/RasmusLindroth/tut/config"
"github.com/icza/gox/timex"

2
ui/item_list.go

@ -3,7 +3,7 @@ package ui
import (
"fmt"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
"github.com/rivo/tview"
)

2
ui/item_status.go

@ -6,7 +6,7 @@ import (
"strings"
"time"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
"github.com/RasmusLindroth/tut/api"
"github.com/RasmusLindroth/tut/config"
"github.com/RasmusLindroth/tut/util"

2
ui/item_tag.go

@ -5,7 +5,7 @@ import (
"strconv"
"time"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
"github.com/rivo/tview"
)

2
ui/media.go

@ -8,7 +8,7 @@ import (
"os/exec"
"path/filepath"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
"github.com/atotto/clipboard"
)

2
ui/pollview.go

@ -4,7 +4,7 @@ import (
"fmt"
"time"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
"github.com/gdamore/tcell/v2"
"github.com/rivo/tview"
)

2
ui/preferenceview.go

@ -3,7 +3,7 @@ package ui
import (
"fmt"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
"github.com/gdamore/tcell/v2"
"github.com/rivo/tview"
)

2
ui/tutview.go

@ -8,7 +8,7 @@ import (
"strings"
"time"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
"github.com/RasmusLindroth/tut/api"
"github.com/RasmusLindroth/tut/auth"
"github.com/RasmusLindroth/tut/config"

2
ui/view.go

@ -3,7 +3,7 @@ package ui
import (
"log"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
"github.com/RasmusLindroth/tut/api"
)

2
ui/voteview.go

@ -3,7 +3,7 @@ package ui
import (
"fmt"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
"github.com/rivo/tview"
)

2
util/util.go

@ -8,7 +8,7 @@ import (
"path/filepath"
"strings"
"github.com/RasmusLindroth/go-mastodon"
"github.com/blacklight/go-mastodon"
"github.com/adrg/xdg"
"github.com/microcosm-cc/bluemonday"
"github.com/rivo/tview"

Loading…
Cancel
Save