Added basic creation of document buffers in communities

This commit is contained in:
2019-02-05 12:20:50 -06:00
parent 21895d307b
commit 3f7c069ce0
6 changed files with 67 additions and 5 deletions

View File

@@ -68,7 +68,7 @@ class vkSession(object):
# Example of this behaviour is when you upload an audio and inmediately delete the audio, VK still sends the post stating that you uploaded an audio file,
# But without the audio data, making socializer to render an empty post.
# Here we check if the post contains data of the type it advertises.
if i.get("type") != None and post_types.get(i["type"]) not in i:
if i.get("type") != None and isinstance(i["type"], str) and post_types.get(i["type"]) not in i:
log.error("Detected invalid or unsupported post. Skipping...")
log.error(i)
continue