mirror of
https://github.com/Automattic/wordpress-activitypub
synced 2024-10-18 14:23:31 +00:00
it's about sharing not federation
...so do not check if `post_type_supports` activitypub
This commit is contained in:
parent
94b2f01df4
commit
c04a4367df
1 changed files with 1 additions and 9 deletions
|
@ -48,11 +48,6 @@ class Opengraph {
|
|||
* @return array the updated metadata.
|
||||
*/
|
||||
public static function add_metadata( $metadata ) {
|
||||
// Do not add the metadata if it already exists
|
||||
if ( array_key_exists( 'fediverse:creator', $metadata ) ) {
|
||||
return $metadata;
|
||||
}
|
||||
|
||||
// Always show Blog-User if the Blog is in single user mode
|
||||
if ( is_single_user() ) {
|
||||
$user = new Blog();
|
||||
|
@ -66,10 +61,7 @@ class Opengraph {
|
|||
if ( \is_author() ) {
|
||||
// Use the Author of the Archive-Page
|
||||
$user_id = \get_queried_object_id();
|
||||
} elseif (
|
||||
\is_singular() &&
|
||||
\post_type_supports( get_post_type(), 'activitypub' )
|
||||
) {
|
||||
} elseif ( \is_singular() ) {
|
||||
// Use the Author of the Post
|
||||
$user_id = \get_post_field( 'post_author', \get_queried_object_id() );
|
||||
} elseif ( ! is_user_type_disabled( 'blog' ) ) {
|
||||
|
|
Loading…
Reference in a new issue