Handles case when an audio object has been deleted by the user

This commit is contained in:
Manuel Cortez 2018-12-21 16:21:19 -06:00
parent 651b66198f
commit 3887dce508

View File

@ -87,7 +87,7 @@ def render_newsfeed_item(status, session):
if message == "":
message = "no description available"
# Handle audio rendering.
elif status["type"] == "audio":
elif status["type"] == "audio" and "audio" in status:
# removes deleted audios.
status["audio"] = clean_audio(status["audio"])
if status["audio"]["count"] == 1: