Handles case when an audio object has been deleted by the user
This commit is contained in:
parent
651b66198f
commit
3887dce508
@ -87,7 +87,7 @@ def render_newsfeed_item(status, session):
|
|||||||
if message == "":
|
if message == "":
|
||||||
message = "no description available"
|
message = "no description available"
|
||||||
# Handle audio rendering.
|
# Handle audio rendering.
|
||||||
elif status["type"] == "audio":
|
elif status["type"] == "audio" and "audio" in status:
|
||||||
# removes deleted audios.
|
# removes deleted audios.
|
||||||
status["audio"] = clean_audio(status["audio"])
|
status["audio"] = clean_audio(status["audio"])
|
||||||
if status["audio"]["count"] == 1:
|
if status["audio"]["count"] == 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user