Compare commits
2 Commits
347a879663
...
master
Author | SHA1 | Date | |
---|---|---|---|
3bbc515e10 | |||
4bfa00c51e |
@ -1,12 +1,12 @@
|
|||||||
[mastodon]
|
[mastodon]
|
||||||
API_URL = https://mastodon.social/api/v1
|
API_URL = 'https://mastodon.social/api/v1'
|
||||||
API_ACCESS_TOKEN = your_access_token_here
|
API_ACCESS_TOKEN = 'your_access_token_here'
|
||||||
|
|
||||||
[vk]
|
[vk]
|
||||||
API_URL = https://api.vk.com/method
|
API_URL = 'https://api.vk.com/method'
|
||||||
API_VERSION = 5.131
|
API_VERSION = '5.131'
|
||||||
API_ACCESS_TOKEN = your_access_token_here
|
API_ACCESS_TOKEN = 'your_access_token_here'
|
||||||
GROUP_DOMAIN = apiclub
|
GROUP_DOMAIN = 'apiclub'
|
||||||
|
|
||||||
[bridge]
|
[bridge]
|
||||||
POLLING_TIME = 300
|
POLLING_TIME = 300
|
||||||
|
@ -168,8 +168,6 @@ def toot(post_data: dict) -> str:
|
|||||||
|
|
||||||
# Get status text
|
# Get status text
|
||||||
text = post_text + '\n\n' + 'Source: ' + vk_post_url + '\n\nAttachments:\n' + post_attachments
|
text = post_text + '\n\n' + 'Source: ' + vk_post_url + '\n\nAttachments:\n' + post_attachments
|
||||||
print('Длина текста', len(text))
|
|
||||||
print(text)
|
|
||||||
# Post toot!
|
# Post toot!
|
||||||
publish_toot(text, media_ids)
|
publish_toot(text, media_ids)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user