Open jeremyjannotta opened 12 years ago
As Jeremy and I discussed in person, this status change actually seems very inconsistent from Blogsmith itself. I'm reluctant to build in support for this until we're confident the status in the API is reliable.
Is this something we should open up a support ticket for?
In addition to the conditions listed above, also need to support the following:
If status = "error"
, then blog is disabled.
Added support to detect the status in the API, via commit f5d0f923e50316844c245d0fb9da796335692fd3 .
Add support to automatically make the widget live/disabled/completed from the CMS liveblog page directly, so that bloggers can control the state of the widget.
Looks like it may be indicated in existing API data using the
int
property: Ifint = 0
andlast_update = 0
, then blog hasn't started yet Ifint = 0
andlast_update > 0
, then blog is completed Ifint > 0
, then blog is liveJoe Bartlett's plugin shows this implemented at: https://github.com/aoltech/liveblog-publisher/blob/master/src/LbP/Repeater.js#L47