 (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."
   [conn org-uuid :- lib-schema/UniqueID allowed-boards :- (schema/maybe [AllowedBoard]) user-id :- lib-schema/UniqueID
-   order start direction limit follow-data container-last-seen-at {:keys [count unseen] :or {count false unseen false}}]
+   order start direction limit follow-data container-last-seen-at {count? :count unseen :unseen :or {count? false unseen false}}]
   {:pre [(db-common/conn? conn)
          (#{:desc :asc} order)
          (#{:before :after} direction)

(schema/defn ^:always-validate list-entries-by-org-author

  ([conn org-uuid :- lib-schema/UniqueID author-uuid :- lib-schema/UniqueID order start :- (schema/maybe LongNumber)
    direction limit allowed-boards :- (schema/maybe [AllowedBoard]) {:keys [count] :or {count false}}]
   {:pre [(db-common/conn? conn)
          (#{:desc :asc} order)
          (#{:before :after} direction)

        index-value (if allowed-boards
                      (map #(vec [:published (:uuid %)]) allowed-boards)
                      [[:published org-uuid]])
        filter-map [{:fn :contains :value (map :uuid allowed-boards) :field :board-uuid}]]
    (db-common/read-all-resources-and-relations conn table-name index-name index-value "published-at" order
                                                           start direction filter-map :interactions common/interaction-table-name
                                                           :uuid :resource-uuid list-comment-properties
                                                           {:count count? :container-id container-id}))))

(schema/defn ^:always-validate paginated-entries-for-digest
  "
