Change link media to be large
All checks were successful
/ build (push) Successful in 1m3s

This commit is contained in:
Astra 2025-07-10 19:19:49 +01:00
parent dbc89e5b95
commit bd8a437f43

View file

@ -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 {