Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating table data creation #5

Merged
merged 1 commit into from
Apr 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions mastodon/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ function map_post_movies_to_mastodon( array $movies, bool $testing = false ): vo


if ( sizeof( $collectedMovies ) > 0 ) {
$table_data = array();
$table_data = [];
foreach ( $collectedMovies as $collected_movie ) {
$movieDate = $collected_movie->start->format( "d.m.Y" );
$movieTime = $collected_movie->start->format( "H:i" ) . " Uhr";
$movieTitle = $collected_movie->name;
$movieGenre = '#' . preg_replace( '/([\s\-\+]+)/', '_', $collected_movie->genre );
$table_row = array( $movieDate, $movieTime, $movieTitle, $movieGenre );
$movieDate = $collected_movie->start->format( "d.m.Y" );
$movieTime = $collected_movie->start->format( "H:i" ) . " Uhr";
$movieTitle = $collected_movie->name;
$movieGenre = '#' . preg_replace( '/([\s\-\+]+)/', '_', $collected_movie->genre );
$table_row = [ $movieDate, $movieTime, $movieTitle, $movieGenre ];
$table_data[] = $table_row;
}

Expand Down
4 changes: 2 additions & 2 deletions movie-autopost.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
* @package Movie Autopost
* @author Benjamin Witte, Jan Eike Suchard
* @license EUPL1.2-or-later
* @version 1.2.0
* @version 1.2.3
*
* @wordpress-plugin
* Plugin Name: Movie Autopost
* Plugin URI: https://gegenlicht.net
* Description: Plugin um bald laufende Filme im Gegenlicht einige Zeit vorher automatisch anzukündigen
* Version: 1.2.0
* Version: 1.2.3
* Author: Benjamin Witte, Jan Eike Suchard
* Author URI: https://your-author-domain.com
* Text Domain: movie-autopost
Expand Down