less indentified
This commit is contained in:
parent
ad707fda96
commit
e07d612e30
1 changed files with 26 additions and 25 deletions
7
main.py
7
main.py
|
@ -179,8 +179,9 @@ for f in following:
|
|||
try:
|
||||
while not done and len(j['orderedItems']) > 0:
|
||||
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
|
||||
content = oi['object']['content']
|
||||
if oi['object']['summary'] != None:
|
||||
|
@ -204,7 +205,7 @@ for f in following:
|
|||
)
|
||||
pass
|
||||
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)
|
||||
if not pleroma:
|
||||
r = requests.get(j['prev'], timeout=15)
|
||||
|
|
Loading…
Reference in a new issue