Commit 0e32ae6c44d7e8b7d23b7186a73876e16c6faa1c
Bump scuttle-tag from 0.4.0 to 0.5.0
Bumps [scuttle-tag](https://github.com/ssbc/scuttle-tag) from 0.4.0 to 0.5.0. - [Release notes](https://github.com/ssbc/scuttle-tag/releases) - [Commits](https://github.com/ssbc/scuttle-tag/commits) Signed-off-by: dependabot[bot] <support@github.com>dependabot[bot] authored on 1/7/2021, 9:37:06 AM
Daan Wynen committed on 1/11/2021, 3:01:01 PM
Parent: 85f2e5bf11baa8a44a2598af7cac2815eb9b5e67
Files changed
lib/depject/page/html/render/tag.js | changed |
package-lock.json | changed |
package.json | changed |
lib/depject/page/html/render/tag.js | ||
---|---|---|
@@ -43,19 +43,19 @@ | ||
43 | 43 | const name = tagId === 'all' ? i18n('All Tags') : api.about.obs.name(tagId) |
44 | 44 | const taggedMessages = MutantArray([]) |
45 | 45 | let messageStream |
46 | 46 | if (tagId === 'all' && author === 'all') { |
47 | - messageStream = scuttleTag.pull.messagesTagged() | |
47 | + messageStream = scuttleTag.pull.allTags() | |
48 | 48 | } else if (tagId === 'all' && author !== 'all') { |
49 | - messageStream = scuttleTag.pull.messagesTaggedBy(author) | |
49 | + messageStream = scuttleTag.pull.tagsFrom(author) | |
50 | 50 | } else if (tagId !== 'all' && author === 'all') { |
51 | - messageStream = scuttleTag.pull.messagesTaggedWith(tagId) | |
51 | + messageStream = scuttleTag.pull.tagsOf(tagId) | |
52 | 52 | } else { |
53 | - messageStream = scuttleTag.pull.messagesTaggedWithBy(tagId, author) | |
53 | + messageStream = scuttleTag.pull.tagsOfFrom(tagId, author) | |
54 | 54 | } |
55 | 55 | pull( |
56 | 56 | messageStream, |
57 | - pull.map(api.message.obs.get), | |
57 | + pull.map((msg) => api.message.obs.get(msg.value.content.message)), | |
58 | 58 | pull.drain((msg) => taggedMessages.push(msg)) |
59 | 59 | ) |
60 | 60 | |
61 | 61 | return h('SplitView -tags', [ |
package-lock.json | ||
---|---|---|
The diff is too large to show. Use a local git client to view these changes. Old file size: 413372 bytes New file size: 411128 bytes |
package.json | ||
---|---|---|
@@ -60,9 +60,9 @@ | ||
60 | 60 | "pull-stream": "^3.6.14", |
61 | 61 | "require-style": "^1.1.0", |
62 | 62 | "run-parallel": "^1.1.9", |
63 | 63 | "scuttle-blog": "^1.0.1", |
64 | - "scuttle-tag": "^0.4.0", | |
64 | + "scuttle-tag": "^0.5.0", | |
65 | 65 | "secret-stack": "^6.3.1", |
66 | 66 | "sorted-array-functions": "^1.2.0", |
67 | 67 | "spacetime": "^6.4.1", |
68 | 68 | "ssb-about": "github:ssbc/ssb-about#use-await-ready", |
Built with git-ssb-web