   {:pre [(db-common/conn? conn)
          (map? entry-props)]}
   (when-let [original-entry (get-entry conn uuid)]
-    (log-query-time "publish-entry!, start")
     (let [authors (:author original-entry)
           ts (db-common/current-timestamp)
           publisher (lib-schema/author-for-user user)

   {:pre [(db-common/conn? conn)
          (#{:desc :asc} order)
          (#{:before :after} direction)]}
   (log-query-time "list-all-bookmarked-entries, start")
   (let [index-name (if allowed-boards ;; empty array means user has 0 boards access
                      :status-board-uuid-bookmark-user-id-multi
                      :org-uuid-status-bookmark-user-id-map-multi)
         index-value (if allowed-boards
                       (map #(vec [:published (:uuid %) user-id]) allowed-boards)
                       [[:published org-uuid user-id]])
         result (storage-db-common/read-paginated-entries conn table-name index-name index-value order
                                                          start direction limit :bookmarked-at
                                                          common/interaction-table-name allowed-boards
                                                          nil nil list-comment-properties user-id {:count count})]
     (log-query-time "list-all-bookmarked-entries, finish")
     result)))

(schema/defn ^:always-validate list-all-bookmarked-entries-old
  "Given the UUID of the user, return all the published entries with a bookmark for the given user."

   {:pre [(db-common/conn? conn)
          (#{:desc :asc} order)
          (integer? limit)]}
   (timbre/info "entry-res/list-all-entries-for-inbox")
   (let [index-name (if allowed-boards
                      :status-board-uuid
                      :status-org-uuid)
         index-value (if allowed-boards
                       (map #(vec [:published (:uuid %)]) allowed-boards)
                       [[:published org-uuid]])]
     (time
      (storage-db-common/read-all-inbox-for-user conn table-name index-name index-value order start limit
                                                 common/interaction-table-name allowed-boards follow-data user-id
                                                 list-comment-properties {:count count})))))

(schema/defn ^:always-validate list-entries-for-user-replies
  "List all activities with at least one comment where the user-id has been active part."
