diff --git a/hive/indexer/posts.py b/hive/indexer/posts.py
index 090667bfefb1d9b86259bbb7ceb3f2227bdcee74..1d04d8a769090211d76b276722fd9faab3f6c34d 100644
--- a/hive/indexer/posts.py
+++ b/hive/indexer/posts.py
@@ -100,8 +100,11 @@ class Posts(DbAdapterHolder):
             pass
 
         tags = []
+
         if md and 'tags' in md and isinstance(md['tags'], list):
-            tags = md['tags']
+            for tag in md['tags']:
+                if tag and isinstance(tag, str):
+                    tags.append(tag) # No escaping needed due to used sqlalchemy formatting features
 
         sql = """
             SELECT is_new_post, id, author_id, permlink_id, post_category, parent_id, community_id, is_valid, is_muted, depth