it's home, not unlisted
This commit is contained in:
parent
29e63b8b14
commit
7d92d80986
2 changed files with 2 additions and 1 deletions
|
|
@ -20,4 +20,5 @@ print(text)
|
||||||
requests.post("https://beeping.synth.download/api/iceshrimp/notes", json={
|
requests.post("https://beeping.synth.download/api/iceshrimp/notes", json={
|
||||||
'visibility': 'home',
|
'visibility': 'home',
|
||||||
'text': text,
|
'text': text,
|
||||||
|
#'cw': 'gyattov generated text',
|
||||||
}, headers={"Authorization": f"Bearer {secrets__.TOKEN}"})
|
}, headers={"Authorization": f"Bearer {secrets__.TOKEN}"})
|
||||||
|
|
@ -20,7 +20,7 @@ export_json = json.load(export)
|
||||||
corpus = []
|
corpus = []
|
||||||
|
|
||||||
for note in export_json:
|
for note in export_json:
|
||||||
if note.get('visibility') not in ['public', 'unlisted']:
|
if note.get('visibility') not in ['public', 'home']:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if note.get('localOnly'):
|
if note.get('localOnly'):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue