Skip to content

Commit

Permalink
chore: remove unecessary event post module (#806)
Browse files Browse the repository at this point in the history
* chore: remove event occasion meta post module

* chore: TODO
  • Loading branch information
NiclasNorin authored Feb 7, 2025
1 parent 3abbbad commit b1423f2
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,10 @@ private function setPostViewData(object $post, $index = false)
$post->image['backgroundColor'] = 'secondary';
}

// TODO: Should be removed in the future
if( $this->postUsesSchemaTypeEvent($post) || $post->getPostType() == 'event') {
$eventOccasions = get_post_meta($post->id, 'occasions_complete', true);
if (!empty($eventOccasions)) {
$post->postDateFormatted = $eventOccasions[0]['start_date'];
$post->dateBadge = true;
} else {
$post->postDateFormatted = false;
}
}

Expand Down

0 comments on commit b1423f2

Please sign in to comment.