From 1e5c7675cdd71e04ae9fdda9bcf97d5659590e91 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Mon, 6 Nov 2023 14:40:05 +0100 Subject: [PATCH] never used --- includes/functions.php | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index e404641..3605925 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -322,29 +322,6 @@ function url_to_webfinger( $user_url ) { return $webfinger; } -/** - * Determine AP audience of incoming object - * @param string $object - * @return string audience - */ -function get_audience( $object ) { - if ( in_array( AS_PUBLIC, $object['to'] ) ) { - return 'public'; - } - if ( in_array( AS_PUBLIC, $object['cc'] ) ) { - return 'unlisted'; - } - if ( ! in_array( AS_PUBLIC, $object['to'] ) && ! in_array( AS_PUBLIC, $object['cc'] ) ) { - $author_post_url = get_author_posts_url( $object['user_id'] ); - if ( in_array( $author_post_url, $object['cc'] ) ) { - return 'followers_only'; - } - if ( in_array( $author_post_url, $object['to'] ) ) { - return 'private'; - } - } -} - /** * Check for Tombstone Objects *