less indentified

This commit is contained in:
Lynne 2018-11-29 05:36:05 +10:00
parent ad707fda96
commit e07d612e30
No known key found for this signature in database
GPG Key ID: FB7B970303ACE499
1 changed files with 26 additions and 25 deletions

View File

@ -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)