Skip to content

Commit d32e282

Browse files
committed
Indexer domains/topics should always be lowercase
1 parent f2bd1c9 commit d32e282

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/indexer/src/ThingMeta.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,12 @@ function nodesToMetaRecord(
175175
replyToAuthorId: Thing.authorId(replyToNode),
176176
replyToKind: Thing.kind(replyToNode),
177177
kind: Thing.kind(thingNode) || ThingDataNode.kind(thingData),
178-
topic: Thing.topic(thingNode) || ThingDataNode.topic(thingData),
179-
domain: ThingDataNode.domain(thingData),
178+
topic: (
179+
Thing.topic(thingNode) ||
180+
ThingDataNode.topic(thingData) ||
181+
'whatever'
182+
).toLowerCase(),
183+
domain: (ThingDataNode.domain(thingData) || 'unknown').toLowerCase(),
180184
created,
181185
updated: countsNode?._?.['>']?.comments || created,
182186
counts: {

0 commit comments

Comments
 (0)