Currently, we don't allow users to remove the `main_image` of an article once it has been set. It can be changed, but never removed.
This change allows the `main_image` to be removed by checking for the `cover_image` key in the frontmatter that is sent along in the article's markdown. This means that a user should be able to remove the image associated with an article by removing the value of `cover_image:` from their frontmatter.
* Do not render or link to empty rss feeds
* s
* Move calculation to worker
* remove xit test
* Also allow implicit rating votes in comments
* Fix alignment issue
* Remove comment logic
* Fixed listings/dashboard/rowElements/location.jsx eslint error
* Update app/javascript/listings/dashboard/rowElements/location.jsx
Co-Authored-By: Nick Taylor <nick@iamdeveloper.com>
Co-authored-by: Nick Taylor <nick@iamdeveloper.com>
* Refactor debounce usage into debounceAction util
* Allow debounceAction's config to be merged, allow for named arguments
Also clean up the documentation as necessary!
* First experiment with supressing audio playback on native iOS
* Adds load audio message posting
* First version of refactor working on web
* handlePodcastMessages now receives messages sent into JS from native iOS app
* bump back to "v2" local storage key or playback state
* terminatePodcastBar now clears the currentAudioState
* function getMediaState now initializeMedia, fixes audioExistAndIsPlaying for web, better playAudio error management & others
* Fixes bug in playAudio() & clears audioInitialized when no Podcast was initialized
* Codeclimate tweaks
* Reorders functions to comply with codeclimate
* More codeclimate reordering & fixes
* Upgrades the audio bridge messages to JSON instead of strings
* codeclimate doh
* Modernize index test
* Hide comments body_html and user info if the comment is either deleted or hidden
* Shorten lines a bit
* Freeze repeated strings
* Document all /comments
* Document /comments/{id}
* refactor: add an eventListener for click
* chore: oops
* feat: add expiry for the cookie 5 days from now
* chore: update comment
* chore: add strict back
* Changed shecoded preview template
* Added a test for social preview template with multiple campaign tags
* feat: update some css properties to make it closer to the design (i think)
* Update to relative units
* Update spec
Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
Co-authored-by: Ben Halpern <bendhalpern@gmail.com>
* Add a mascot_user_id to SiteConfig
Also allow it to be updated from /internal/config pages.
Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>
Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>
* Add spec for updating mascot_user_id
Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>