     :post (fn [ctx] (let [entry-props (:data ctx)]
                       (or (nil? entry-props) ; no updates during publish is fine
                           (valid-entry-update? conn entry-uuid entry-props))))})
-  :new? false 
+  :new? false
   :respond-with-entity? true
 
   ;; Existentialism

                          :post (fn [ctx] (api-common/known-content-type? ctx mt/share-request-media-type))})

  ;; Data handling
  :new? false 
  :respond-with-entity? true

  ;; Validations

      {:updated-entry (api-common/rep update-result)})
    (do
      (timbre/error "Failed sharing entry:" entry-for) false)))

(defn- create-follow-ups [conn ctx entry-for]
  (timbre/info "Creating " (count (:follow-ups ctx)) " follow-ups for entry:" entry-for)
  (if-let* [org (:existing-org ctx)
            board (:existing-board ctx)
            entry (:existing-entry ctx)
            user (:user ctx)
            follow-ups (:follow-ups ctx)
            updated-entry (entry-res/add-follow-ups! conn entry follow-ups user)
            entry-with-comments (assoc entry :existing-comments (entry-res/list-comments-for-entry conn (:uuid entry)))]
    (do
      ;; TODO: Trigger notifications for created follow-ups
      ;; (when (and (seq? follow-ups) (any? follow-ups)))
      (timbre/info "Follow-ups created for entry:" entry-for)
      {:updated-entry (api-common/rep updated-entry)})
    (do
      (timbre/error "Failed creating follow-ups for entry:" entry-for) false)))

(defn- mark-complete-follow-up [conn ctx entry-for]
  (timbre/info "Marking complete follow-up " (:uuid (:existing-follow-up ctx)) " for entry:" entry-for)
  (if-let* [org (:existing-org ctx)
            board (:existing-board ctx)
            entry (:existing-entry ctx)
            follow-up (:existing-follow-up ctx)
            user (:user ctx)
            updated-entry (entry-res/complete-follow-up! conn entry follow-up user)
            entry-with-comments (assoc entry :existing-comments (entry-res/list-comments-for-entry conn (:uuid entry)))]
    (do
      ;; TODO: Trigger notifications for completed follow-up
      (timbre/info "Follow-up marked complete for entry:" entry-for)
      {:updated-entry (api-common/rep updated-entry)})
    (do
      (timbre/error "Failed marking complete follow-up for entry:" entry-for) false)))

(defn auto-share-on-publish
  [conn ctx entry-result]
