This commit is contained in:
parent
dbc89e5b95
commit
bd8a437f43
1 changed files with 2 additions and 3 deletions
5
main.go
5
main.go
|
@ -21,8 +21,6 @@ import (
|
||||||
"git.zio.sh/astra/bsky2tg/bsky"
|
"git.zio.sh/astra/bsky2tg/bsky"
|
||||||
tgbotapi "github.com/OvyFlash/telegram-bot-api"
|
tgbotapi "github.com/OvyFlash/telegram-bot-api"
|
||||||
|
|
||||||
// apibsky "github.com/bluesky-social/indigo/api/bsky"
|
|
||||||
|
|
||||||
"github.com/bluesky-social/jetstream/pkg/client"
|
"github.com/bluesky-social/jetstream/pkg/client"
|
||||||
"github.com/bluesky-social/jetstream/pkg/client/schedulers/sequential"
|
"github.com/bluesky-social/jetstream/pkg/client/schedulers/sequential"
|
||||||
"github.com/bluesky-social/jetstream/pkg/models"
|
"github.com/bluesky-social/jetstream/pkg/models"
|
||||||
|
@ -303,7 +301,8 @@ func (h *handler) ProcessPost(event *models.Event) error {
|
||||||
URL: fmt.Sprintf("https://bsky.app/profile/%s/post/%s",
|
URL: fmt.Sprintf("https://bsky.app/profile/%s/post/%s",
|
||||||
strings.Split(ps.Embed.Record.URI, "/")[2],
|
strings.Split(ps.Embed.Record.URI, "/")[2],
|
||||||
strings.Split(ps.Embed.Record.URI, "/")[4]),
|
strings.Split(ps.Embed.Record.URI, "/")[4]),
|
||||||
PreferSmallMedia: true,
|
PreferSmallMedia: false,
|
||||||
|
PreferLargeMedia: true,
|
||||||
ShowAboveText: true,
|
ShowAboveText: true,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue