}
}
-function signAndContextify <T> (byActor: MActor, data: T, contextType: ContextType | null) {
+async function signAndContextify <T> (byActor: MActor, data: T, contextType: ContextType | null) {
const activity = contextType
- ? activityPubContextify(data, contextType)
+ ? await activityPubContextify(data, contextType)
: data
return signJsonLDObject(byActor, activity)