fix some small issues

This commit is contained in:
Matthias Pfefferle 2023-12-22 11:01:23 +01:00
parent b744dc551d
commit f2b231ccac
2 changed files with 2 additions and 2 deletions

View file

@ -74,7 +74,7 @@ class Activity_Dispatcher {
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() );

View file

@ -377,7 +377,7 @@ class Post extends Base {
*
* @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' ) );
}