Skip to content

Commit

Permalink
fix some small issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Dec 22, 2023
1 parent b744dc5 commit f2b231c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/class-activity-dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static function send_activity( $wp_object, $type, $user_id = null ) {
return;
}

$activity = $transformer->to_activity( 'Create' );
$activity = $transformer->to_activity( $type );

$follower_inboxes = Followers::get_inboxes( $user_id );
$mentioned_inboxes = Mention::get_inboxes( $activity->get_cc() );
Expand Down
2 changes: 1 addition & 1 deletion includes/transformer/class-post.php
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ protected static function get_wordpress_attachment( $id, $image_size = 'full' )
*
* @return string The Object-Type.
*/
protected function get_object_type() {
protected function get_type() {
if ( 'wordpress-post-format' !== \get_option( 'activitypub_object_type', 'note' ) ) {
return \ucfirst( \get_option( 'activitypub_object_type', 'note' ) );
}
Expand Down

0 comments on commit f2b231c

Please sign in to comment.