From acb8b3a40172ccb184ffe544760601d756692e6c Mon Sep 17 00:00:00 2001 From: Yassine Doghri Date: Fri, 16 Apr 2021 16:31:09 +0000 Subject: [PATCH] fix: check that note has a preview_card_id before displaying it fixes #114 --- app/Views/podcast/_partials/note.php | 9 ++++----- app/Views/podcast/_partials/note_authenticated.php | 9 ++++----- app/Views/podcast/_partials/reblog.php | 9 ++++----- app/Views/podcast/_partials/reblog_authenticated.php | 9 ++++----- app/Views/podcast/_partials/reply.php | 2 +- app/Views/podcast/_partials/reply_authenticated.php | 2 +- 6 files changed, 18 insertions(+), 22 deletions(-) diff --git a/app/Views/podcast/_partials/note.php b/app/Views/podcast/_partials/note.php index 757f4785..d94f7eb3 100644 --- a/app/Views/podcast/_partials/note.php +++ b/app/Views/podcast/_partials/note.php @@ -27,15 +27,14 @@
message_html ?>
- preview_card): ?> - $note->preview_card, - ]) ?> - episode_id): ?> $note->episode, ]) ?> + preview_card_id): ?> + $note->preview_card, + ]) ?> include('podcast/_partials/note_actions') ?> diff --git a/app/Views/podcast/_partials/note_authenticated.php b/app/Views/podcast/_partials/note_authenticated.php index 44279df1..01930eb2 100644 --- a/app/Views/podcast/_partials/note_authenticated.php +++ b/app/Views/podcast/_partials/note_authenticated.php @@ -27,15 +27,14 @@
message_html ?>
- preview_card): ?> - $note->preview_card, - ]) ?> - episode_id): ?> $note->episode, ]) ?> + preview_card_id): ?> + $note->preview_card, + ]) ?> include('podcast/_partials/note_actions_authenticated') ?> diff --git a/app/Views/podcast/_partials/reblog.php b/app/Views/podcast/_partials/reblog.php index 12077674..fa014f1e 100644 --- a/app/Views/podcast/_partials/reblog.php +++ b/app/Views/podcast/_partials/reblog.php @@ -34,15 +34,14 @@
message_html ?>
- preview_card): ?> - $note->preview_card, - ]) ?> - episode_id): ?> $note->episode, ]) ?> + preview_card_id): ?> + $note->preview_card, + ]) ?> include('podcast/_partials/note_actions') ?> diff --git a/app/Views/podcast/_partials/reblog_authenticated.php b/app/Views/podcast/_partials/reblog_authenticated.php index bfb01806..43ecf460 100644 --- a/app/Views/podcast/_partials/reblog_authenticated.php +++ b/app/Views/podcast/_partials/reblog_authenticated.php @@ -34,15 +34,14 @@
message_html ?>
- preview_card): ?> - $note->preview_card, - ]) ?> - episode_id): ?> $note->episode, ]) ?> + preview_card_id): ?> + $note->preview_card, + ]) ?> include('podcast/_partials/note_actions_authenticated') ?> diff --git a/app/Views/podcast/_partials/reply.php b/app/Views/podcast/_partials/reply.php index 2d36a450..c687a1e9 100644 --- a/app/Views/podcast/_partials/reply.php +++ b/app/Views/podcast/_partials/reply.php @@ -19,7 +19,7 @@ >published_at]) ?>

message_html ?>

- preview_card): ?> + preview_card_id): ?> $reply->preview_card, ]) ?> diff --git a/app/Views/podcast/_partials/reply_authenticated.php b/app/Views/podcast/_partials/reply_authenticated.php index 739986fa..e7dfebcf 100644 --- a/app/Views/podcast/_partials/reply_authenticated.php +++ b/app/Views/podcast/_partials/reply_authenticated.php @@ -19,7 +19,7 @@ >created_at]) ?>

message_html ?>

- preview_card): ?> + preview_card_id): ?> $reply->preview_card, ]) ?>