microblogPane/microblogPane.js
function (user) {
      this.favorites = {}
      this.favoritesURI = ''
      if (!user) { // TODO is this even useful?
        return
      }
      this.user = user.split('#')[0]
      let created = kb.each(kb.sym(user), SIOC('creator_of'))
      for (let c in created) {
        if (kb.whether(created[c], RDF('type'), SIOCt('FavouriteThings'))) {
          this.favoritesURI = created[c]
          var favs = kb.each(created[c], SIOC('container_of'))
          for (var f in favs) {
            this.favorites[favs[f]] = ''
          }
          break
        }
      }
    }
function (user) {
      this.favorites = {}
      this.favoritesURI = ''
      if (!user) { // TODO is this even useful?
        return
      }
      this.user = user.split('#')[0]
      let created = kb.each(kb.sym(user), SIOC('creator_of'))
      for (let c in created) {
        if (kb.whether(created[c], RDF('type'), SIOCt('FavouriteThings'))) {
          this.favoritesURI = created[c]
          var favs = kb.each(created[c], SIOC('container_of'))
          for (var f in favs) {
            this.favorites[favs[f]] = ''
          }
          break
        }
      }
    }
---------------------------------------------- FAVORITES controls the list of favorites. constructor expects a user as uri. ----------------------------------------------