Return more tag details with item insights

This commit is contained in:
Eike Kettner
2020-08-08 00:41:20 +02:00
parent c8ad9bf11f
commit a4796f3f7f
5 changed files with 36 additions and 13 deletions

View File

@ -31,9 +31,12 @@ trait Conversions {
d.incoming,
d.outgoing,
d.bytes,
TagCloud(d.tags.toList.map(p => NameCount(p._1, p._2)))
TagCloud(d.tags.map(tc => TagCount(mkTagLight(tc), tc.count)))
)
def mkTagLight(t: OCollective.TagCount): TagLight =
TagLight(t.id, t.name, t.category)
// attachment meta
def mkAttachmentMeta(rm: RAttachmentMeta): AttachmentMeta =
AttachmentMeta(