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

               ;  r/not)
               ;; All records after/before the start
               (r/or (r/and (= direction :before)
                            (r/gt start (r/get-field row :sort-value)))
                     (r/and (= direction :after)
                            (r/le start (r/get-field row :sort-value))))
               ;; Filter on the user's visibility map:
               (r/or ;; has :follow true
                     (-> row

                     (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 :publish-time)))
                           (r/and (= direction :after)
                                  (r/le start (r/get-field row :publish-time)))))))
            ;; Merge in all the interactions
            (if-not count
              (r/merge query (r/fn [post-row]
