Allow recordings to be 'unlisted'

Unlisted is a state between published and unpublished. They are still
published in the server, but will not appear to anyone other than the
user that created the recording.
It is done using a metadata attribute and required several changes in how
the application handles publishing and unpublishing.
This commit is contained in:
Leonardo Crauss Daronco
2016-12-06 12:03:53 -02:00
parent 40cbc8a575
commit b518458622
12 changed files with 111 additions and 53 deletions

View File

@ -24,6 +24,7 @@ json.recordings do
json.end_time recording[:endTime]
json.published recording[:published]
json.length recording[:length]
json.listed recording[:listed]
json.previews do
json.array!(recording[:previews]) do |preview|
json.partial! 'preview', preview: preview