mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-09-30 05:31:22 +02:00
feat(rss): add podcast:comments tag to link to episode comments
This commit is contained in:
parent
ed8dc0052c
commit
32e8c7c16a
@ -6,7 +6,7 @@
|
|||||||
"service": "app",
|
"service": "app",
|
||||||
"workspaceFolder": "/castopod-host",
|
"workspaceFolder": "/castopod-host",
|
||||||
"postCreateCommand": "composer install && npm install && npm run build:static",
|
"postCreateCommand": "composer install && npm install && npm run build:static",
|
||||||
"postStartCommand": "crontab ./crontab && cron && php spark serve --host 0.0.0.0 & npm run dev",
|
"postStartCommand": "crontab ./crontab && cron && php spark serve --host 0.0.0.0",
|
||||||
"postAttachCommand": "crontab ./crontab && service cron reload",
|
"postAttachCommand": "crontab ./crontab && service cron reload",
|
||||||
"shutdownAction": "stopCompose",
|
"shutdownAction": "stopCompose",
|
||||||
"settings": {
|
"settings": {
|
||||||
|
@ -249,6 +249,11 @@ if (! function_exists('get_rss_feed')) {
|
|||||||
$item->addChild('season', $episode->season_number, $itunesNamespace);
|
$item->addChild('season', $episode->season_number, $itunesNamespace);
|
||||||
$item->addChild('episodeType', $episode->type, $itunesNamespace);
|
$item->addChild('episodeType', $episode->type, $itunesNamespace);
|
||||||
|
|
||||||
|
// add link to episode comments as podcast-activity format
|
||||||
|
$comments = $item->addChild('comments', null, $podcastNamespace);
|
||||||
|
$comments->addAttribute('uri', url_to('episode-comments', $podcast->name, $episode->slug));
|
||||||
|
$comments->addAttribute('contentType', 'application/podcast-activity+json');
|
||||||
|
|
||||||
if ($episode->transcript_file_url) {
|
if ($episode->transcript_file_url) {
|
||||||
$transcriptElement = $item->addChild('transcript', null, $podcastNamespace);
|
$transcriptElement = $item->addChild('transcript', null, $podcastNamespace);
|
||||||
$transcriptElement->addAttribute('url', $episode->transcript_file_url);
|
$transcriptElement->addAttribute('url', $episode->transcript_file_url);
|
||||||
|
@ -90,17 +90,21 @@ required services will be loaded automagically!
|
|||||||
> The VSCode window will reload inside the dev container. Expect several
|
> The VSCode window will reload inside the dev container. Expect several
|
||||||
> minutes during first load as it is building all necessary services.
|
> minutes during first load as it is building all necessary services.
|
||||||
|
|
||||||
**Note**: The dev container will start by running both the Castopod Host
|
**Note**: The dev container will start by running Castopod Host's php server.
|
||||||
server and [Vite](https://vitejs.dev)'s dev server (for compiling the
|
During development, you will have to start [Vite](https://vitejs.dev)'s dev
|
||||||
typescript code and styles). If there is any issue with the servers not
|
server for compiling the typescript code and styles:
|
||||||
running, you can restart them using the following commands:
|
|
||||||
|
```bash
|
||||||
|
# run Vite dev server
|
||||||
|
npm run dev
|
||||||
|
```
|
||||||
|
|
||||||
|
If there is any issue with the php server not running, you can restart them
|
||||||
|
using the following commands:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# run Castopod host server
|
# run Castopod host server
|
||||||
php spark serve --host 0.0.0.0
|
php spark serve --host 0.0.0.0
|
||||||
|
|
||||||
# run Vite dev server
|
|
||||||
npm run dev
|
|
||||||
```
|
```
|
||||||
|
|
||||||
3. You're all set! 🎉
|
3. You're all set! 🎉
|
||||||
|
Loading…
Reference in New Issue
Block a user