Skip to content
Snippets Groups Projects
Commit 4c7ecbee authored by Benjamin Bellamy's avatar Benjamin Bellamy :speech_balloon:
Browse files

feat(rss): update monetization tag so that it meets PodcastIndex requirements

parent 81c1c038
No related branches found
No related tags found
1 merge request!1WIP: German translation
......@@ -67,11 +67,19 @@ function get_rss_feed($podcast, $serviceSlug = '')
$channel->addChild('language', $podcast->language_code);
if (!empty($podcast->payment_pointer)) {
$channel->addChild(
'monetization',
$podcast->payment_pointer,
$valueElement = $channel->addChild('value', null, $podcast_namespace);
$valueElement->addAttribute('type', 'webmonetization');
$valueElement->addAttribute('method', '');
$valueElement->addAttribute('suggested', '');
$recipientElement = $valueElement->addChild(
'valueRecipient',
null,
$podcast_namespace
);
$recipientElement->addAttribute('name', $podcast->owner_name);
$recipientElement->addAttribute('type', 'ILP');
$recipientElement->addAttribute('address', $podcast->payment_pointer);
$recipientElement->addAttribute('split', 100);
}
$channel
->addChild(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment