Добавил включение/отключение NSFW штук

This commit is contained in:
B4D_US3R 2025-04-23 09:09:01 +05:00
parent 1f1c964e91
commit fef2d2fdb6
4 changed files with 7 additions and 6 deletions

View file

@ -128,7 +128,7 @@ func UploadPictures(mastoClient mastodon.Client, filesBytes [][]byte) []*mastodo
return attachments
}
func CreateToot(mastoClient mastodon.Client, newsDesc *gofeed.Item) (mastodon.Toot, error) {
func CreateToot(mastoClient mastodon.Client, newsDesc *gofeed.Item, sensitive bool) (mastodon.Toot, error) {
var imgArray []string
var attachments []*mastodon.Attachment