use the normal html escape for '@' in addresses rather than the high-plane unicode variant. This makes it copy-able, but not easily scrape-able.
This commit is contained in:
parent
f48b12ff52
commit
ec8091a102
@ -862,7 +862,7 @@ function profile_load(&$a, $nickname, $profile = '') {
|
||||
);
|
||||
if($z) {
|
||||
$p[0]['picdate'] = $z[0]['xchan_photo_date'];
|
||||
$p[0]['reddress'] = str_replace('@','@',$z[0]['xchan_addr']);
|
||||
$p[0]['reddress'] = str_replace('@','@',$z[0]['xchan_addr']);
|
||||
}
|
||||
|
||||
// fetch user tags if this isn't the default profile
|
||||
|
@ -1158,7 +1158,7 @@ function widget_cover_photo($arr) {
|
||||
if(array_key_exists('subtitle', $arr) && isset($arr['subtitle']))
|
||||
$subtitle = $arr['subtitle'];
|
||||
else
|
||||
$subtitle = $channel['xchan_addr'];
|
||||
$subtitle = str_replace('@','@',$channel['xchan_addr']);
|
||||
|
||||
$c = get_cover_photo($channel_id,'html');
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
|
||||
{{if ! $zcard}}
|
||||
<div class="fn p-name">{{$profile.fullname}}{{if $profile.online}} <i class="fa fa-asterisk online-now" title="{{$profile.online}}"></i>{{/if}}</div>
|
||||
{{if $reddress}}<div class="reddress" oncopy="return false;">{{$profile.reddress}}</div>{{/if}}
|
||||
{{if $reddress}}<div class="reddress">{{$profile.reddress}}</div>{{/if}}
|
||||
{{/if}}
|
||||
{{if $pdesc}}<div class="title">{{$profile.pdesc}}</div>{{/if}}
|
||||
{{if $location}}
|
||||
|
Reference in New Issue
Block a user