this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feeds/rapidfire.py: store posts with empty langs

These'll only be available if no Content Languages are provided, but that's okay.

+2 -4
+2 -4
feeds/rapidfire.py
··· 27 27 ts = commit['time'] 28 28 record = op['record'] 29 29 30 - if not record.get('langs'): 31 - return 32 - 33 30 if all([ 34 31 len(record['text']) <= MAX_TEXT_LENGTH, 35 32 record.get('reply') is None, ··· 41 38 post_uri = f'at://{repo}/{path}' 42 39 43 40 with self.db_cnx: 44 - for lang in record['langs']: 41 + langs = record.get('langs') or [''] 42 + for lang in langs: 45 43 self.db_cnx.execute( 46 44 'insert into posts (uri, create_ts, lang) values (:uri, :ts, :lang)', 47 45 dict(uri=post_uri, ts=ts, lang=lang)