updated plugin ActivityPub
version 5.8.0
This commit is contained in:
@ -29,11 +29,11 @@ class Link {
|
||||
*/
|
||||
public static function filter_activity_object( $activity ) {
|
||||
/* phpcs:ignore Squiz.PHP.CommentedOutCode.Found
|
||||
Removed until this is merged: https://github.com/mastodon/mastodon/pull/28629
|
||||
if ( ! empty( $activity['summary'] ) ) {
|
||||
Only changed it for Person and Group as long is not merged: https://github.com/mastodon/mastodon/pull/28629
|
||||
*/
|
||||
if ( ! empty( $activity['summary'] ) && in_array( $activity['type'], array( 'Person', 'Group' ), true ) ) {
|
||||
$activity['summary'] = self::the_content( $activity['summary'] );
|
||||
}
|
||||
*/
|
||||
|
||||
if ( ! empty( $activity['content'] ) ) {
|
||||
$activity['content'] = self::the_content( $activity['content'] );
|
||||
@ -112,6 +112,11 @@ class Link {
|
||||
$display_class .= 'ellipsis';
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters the rel attribute for ActivityPub links.
|
||||
*
|
||||
* @param string $rel The rel attribute string. Default 'nofollow noopener noreferrer'.
|
||||
*/
|
||||
$rel = apply_filters( 'activitypub_link_rel', 'nofollow noopener noreferrer' );
|
||||
|
||||
return \sprintf(
|
||||
|
Reference in New Issue
Block a user