                      (r/or (r/not unseen)
                            (r/default (r/get-field row :unseen) false))
                      (r/or (r/and (= direction :before)
-                                  (r/gt start (r/get-field row :sort-value)))
+                                  (r/gt start (r/get-field row :publish-time)))
                            (r/and (= direction :after)
-                                  (r/le start (r/get-field row :sort-value)))))))
+                                  (r/le start (r/get-field row :publish-time)))))))
             ;; Merge in all the interactions
             (if-not count
               (r/merge query (r/fn [post-row]

                                sort-value-base)]
                {;; Date of the last added comment on this entry
                 :last-activity-at last-activity-at
                 :sort-value sort-value
                 :unseen unseen-with-cap?
                })))

                                   (r/to-epoch-time)
                                   (r/mul 1000)
                                   (r/round)))
              last-activity-ms (-> last-activity-at
                                (r/iso8601)
                                (r/to-epoch-time)
                                (r/mul 1000)
                                (r/round))
              unseen-entry? (r/or (r/not has-seen-at?)
                                  (r/gt published-ms container-seen-ms))
              unseen-cap-ms (-> (r/now) (r/to-epoch-time) (r/mul 1000) (r/round) (r/sub unseen-cap-ms))
