forked from KayFaraday/pleroma-ebooks
less indentified
This commit is contained in:
parent
ad707fda96
commit
e07d612e30
7
main.py
7
main.py
|
@ -179,8 +179,9 @@ for f in following:
|
||||||
try:
|
try:
|
||||||
while not done and len(j['orderedItems']) > 0:
|
while not done and len(j['orderedItems']) > 0:
|
||||||
for oi in j['orderedItems']:
|
for oi in j['orderedItems']:
|
||||||
# if (not pleroma and oi['type'] == "Create") or (pleroma and oi['to']['type'] == "Create"):
|
if oi['type'] != "Create":
|
||||||
if oi['type'] == "Create":
|
continue #not a toost. fuck outta here
|
||||||
|
|
||||||
# its a toost baby
|
# its a toost baby
|
||||||
content = oi['object']['content']
|
content = oi['object']['content']
|
||||||
if oi['object']['summary'] != None:
|
if oi['object']['summary'] != None:
|
||||||
|
@ -204,7 +205,7 @@ for f in following:
|
||||||
)
|
)
|
||||||
pass
|
pass
|
||||||
except:
|
except:
|
||||||
pass #ignore any toots that don't go into the DB
|
pass #ignore any toots that don't successfully go into the DB
|
||||||
# sys.exit(0)
|
# sys.exit(0)
|
||||||
if not pleroma:
|
if not pleroma:
|
||||||
r = requests.get(j['prev'], timeout=15)
|
r = requests.get(j['prev'], timeout=15)
|
||||||
|
|
Loading…
Reference in New Issue