mirror of
https://git.kiwifarms.net/mint/ebooks.git
synced 2024-10-22 23:09:05 +00:00
Option to post in public, this time for real
This commit is contained in:
parent
f79a749e9e
commit
90894fe346
1 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,7 @@ import json
|
|||
import hashlib
|
||||
import aiohttp
|
||||
from http import HTTPStatus
|
||||
from third_party import utils
|
||||
|
||||
def http_session_factory(headers={}):
|
||||
py_version = '.'.join(map(str, sys.version_info))
|
||||
|
@ -94,6 +95,7 @@ class Pleroma:
|
|||
|
||||
content = ''.join('@' + x + ' ' for x in mentioned_accounts.values()) + content
|
||||
|
||||
cfg = utils.load_config(args.cfg)
|
||||
if cfg['public']:
|
||||
visibility = 'public'
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue