                 (store-mention uid _id)
                 nil)))
           user_mentions)))
-     (mc/find-maps @db "published"))))
+     (mc/find-maps @db "publications"))))
+
+
+  (->> (mc/find-maps @db "publications")
+       (map :hashtags)
+       flatten
+       (into #{})
+       second
+       (mc/find-map-by-id @db "hashtags")
+       aprint)
+
 
 
 

        (->> tweets
             (pmap extract-hashtags)
             flatten
             (into #{})
             (pmap store-hashtag))))))


    :date date}))


(defn store-publications [uid tid url-id type hids ts]
  (mc/insert-and-return
   @db
   "publications"
   {:user uid
    :tweet tid
    :url url-id
