diff --git a/hive/server/bridge_api/objects.py b/hive/server/bridge_api/objects.py index 4f1a6efd17a9fb20bb3f2985f71149009fa6fd8d..73db5af2df6bc921a29beb6d742b07f69108414c 100644 --- a/hive/server/bridge_api/objects.py +++ b/hive/server/bridge_api/objects.py @@ -230,15 +230,11 @@ def _condenser_post_object(row, truncate_body=0): """Given a hive_posts row, create a legacy-style post object.""" paid = row['is_paidout'] - # condenser#3424 mitigation - if not row['category']: - row['category'] = 'undefined' - post = {} post['post_id'] = row['id'] post['author'] = row['author'] post['permlink'] = row['permlink'] - post['category'] = row['category'] + post['category'] = row.get('category', 'undefined') post['title'] = row['title'] post['body'] = row['body'][0:truncate_body] if truncate_body else row['body']