We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@
1 parent 1d6c8ea commit 7913faaCopy full SHA for 7913faa
includes/class-blocks.php
@@ -78,6 +78,12 @@ public static function render_follow_me_block( $attrs ) {
78
array( 'icon', 'name', 'webfinger' )
79
);
80
}
81
+
82
+ // add `@` prefix if it's missing
83
+ if ( '@' !== substr( $attrs['profileData']['webfinger'], 0, 1 ) ) {
84
+ $attrs['profileData']['webfinger'] = '@' . $attrs['profileData']['webfinger'];
85
+ }
86
87
$wrapper_attributes = get_block_wrapper_attributes(
88
array(
89
'aria-label' => __( 'Follow me on the Fediverse', 'activitypub' ),
0 commit comments