(props)
| 61 | } |
| 62 | |
| 63 | export default function rdfTemplate (props) { |
| 64 | const { mediaType } = props |
| 65 | if (mediaType[0] === 'application/activity+json' || (mediaType[0] === 'application/ld+json' && mediaType[1].get('profile')?.toLowerCase() === 'https://www.w3.org/ns/activitystreams')) { |
| 66 | return serializeToJSONLD(generateJSONNotification(props), true) |
| 67 | } |
| 68 | |
| 69 | if (mediaType[0] === 'application/ld+json') { |
| 70 | return serializeToJSONLD(generateJSONNotification(props)) |
| 71 | } |
| 72 | |
| 73 | if (mediaType[0] === 'text/turtle') { |
| 74 | return generateTurtleNotification(props) |
| 75 | } |
| 76 | } |
nothing calls this directly
no test coverage detected