Plugin Directory

Changeset 3101492

Timestamp:
06/12/2024 04:05:45 AM (8 weeks ago)
Author:
akirk
Message:

enable-mastodon-apps 0.9.3

Location:
enable-mastodon-apps/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • enable-mastodon-apps/trunk/README.md

    r3101480 r3101492  
    77- Requires PHP: 7.4
    88- License: [GPLv2 or later](http://www.gnu.org/licenses/gpl-2.0.html)
    9 - Stable tag: 0.9.2
     9- Stable tag: 0.9.
    1010
    1111Allow accessing your WordPress with Mastodon clients. Just enter your own blog URL as your instance.
     
    9898## Changelog
    9999
     100
     101
     102
    100103### 0.9.2
    101104- Quick fix to disable the upgrade script to avoid errors.
  • enable-mastodon-apps/trunk/enable-mastodon-apps.php

    r3101480 r3101492  
    44 * Plugin author: Alex Kirk
    55 * Plugin URI: https://github.com/akirk/enable-mastodon-apps
    6  * Version: 0.9.2
     6 * Version: 0.9.
    77 *
    88 * Description: Allow accessing your WordPress with Mastodon clients. Just enter your own blog URL as your instance.
     
    1414 */
    1515
     16
     17
     18
    1619defined( 'ABSPATH' ) || exit;
    1720define( 'ENABLE_MASTODON_APPS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    18 define( 'ENABLE_MASTODON_APPS_VERSION', '0.9.2' );
     21define( 'ENABLE_MASTODON_APPS_VERSION', '0.9.' );
    1922
    2023require __DIR__ . '/vendor/bshaffer/oauth2-server-php/src/OAuth2/Autoloader.php';
     
    6063    'init',
    6164    function () {
    62         new Enable_Mastodon_Apps\Mastodon_API();
    63         new Enable_Mastodon_Apps\Integration\Pixelfed();
    64         new Enable_Mastodon_Apps\Comment_CPT();
     65        new Mastodon_API();
     66        new Integration\Pixelfed();
     67        new Comment_CPT();
    6568    }
    6669);
     70
     71
     72
     73
  • enable-mastodon-apps/trunk/includes/class-mastodon-admin.php

    r3101476 r3101492  
    472472                $comment = get_comment( $comment_id );
    473473                if ( ! $comment || 1 !== intval( $comment->comment_approved ) ) {
    474                     wp_delete_post( $comment_post->ID, true );
     474                    if ( Comment_CPT::CPT === get_post_type( $comment_post->ID ) ) {
     475                        wp_delete_post( $comment_post->ID, true );
     476                    }
    475477                }
    476478            }
Note: See TracChangeset for help on using the changeset viewer.