kopia lustrzana https://github.com/snarfed/bridgy-fed
ATProto.create_report: truncate reason string if it's too long
for snarfed/granary#717pull/977/head
rodzic
853b4be142
commit
aa5701e158
|
@ -579,7 +579,8 @@ class ATProto(User, Protocol):
|
|||
repo_did=repo_did,
|
||||
privkey=repo.signing_key)
|
||||
|
||||
client = Client(f'https://{mod_host}', headers={'User-Agent': USER_AGENT})
|
||||
client = Client(f'https://{mod_host}', truncate=True,
|
||||
headers={'User-Agent': USER_AGENT})
|
||||
output = client.com.atproto.moderation.createReport(input)
|
||||
logger.info(f'Created report on {mod_host}: {json_dumps(output)}')
|
||||
return True
|
||||
|
|
Ładowanie…
Reference in New Issue