Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

Commit

Permalink
Bump ssb-browser-core
Browse files Browse the repository at this point in the history
  • Loading branch information
arj03 committed Feb 16, 2021
1 parent dd00813 commit bb9f75a
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 47 deletions.
132 changes: 89 additions & 43 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"pull-cat": "^1.1.11",
"pull-stream": "^3.6.14",
"rimraf": "^3.0.2",
"ssb-browser-core": "^8.2.0",
"ssb-browser-core": "^8.3.0",
"ssb-contact-msg": "^1.1.0",
"ssb-keys": "^8.0.2",
"ssb-keys-mnemonic": "^1.0.0",
Expand Down
6 changes: 3 additions & 3 deletions profile.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
SSB.getProfileName = function(profileId) {
const profile = SSB.db.getIndex("profiles").getProfile(profileId)
const profile = SSB.db.getIndex("aboutSelf").getProfile(profileId)
if (profile) return profile.name
else return ''
}

SSB.getProfile = function(profileId) {
return SSB.db.getIndex("profiles").getProfile(profileId)
return SSB.db.getIndex("aboutSelf").getProfile(profileId)
}

SSB.searchProfiles = function(search, results = 10) {
const profilesDict = SSB.db.getIndex("profiles").getProfiles()
const profilesDict = SSB.db.getIndex("aboutSelf").getProfiles()
const profiles = []
for (let p in profilesDict) {
const pValue = profilesDict[p]
Expand Down

1 comment on commit bb9f75a

@KyleMaas
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that seems to be working again.

Please sign in to comment.