Skip to content

Commit 973339c

Browse files
authored
fix: expose card class and id in location data (#9945)
Signed-off-by: Alexander Onnikov <[email protected]>
1 parent cc35aa6 commit 973339c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugins/chat-resources/src/location.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,11 @@ export async function resolveLocationData (loc: Location): Promise<LocationData>
142142
return {}
143143
}
144144

145-
return { name: object.title }
145+
return {
146+
name: object.title,
147+
objectId: object._id,
148+
objectClass: object._class
149+
}
146150
}
147151

148152
if (typeId !== undefined) {

0 commit comments

Comments
 (0)