Browse Source

wildcard tag issue

(cherry picked from commit 2f4c619d51)
master
zotlabs 1 year ago
committed by Mario
parent
commit
3a2fdec241
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      include/text.php

+ 3
- 0
include/text.php View File

@ -2789,6 +2789,9 @@ function handle_tag(&$body, &$str_tags, $profile_uid, $tag, $in_network = true)
// select someone by attag or nick and the name passed in
if(! $r) {
// strip user-supplied wildcards before running a wildcard search
$newname = str_replace('%','',$newname);
$r = q("SELECT * FROM abook left join xchan on abook_xchan = xchan_hash
WHERE xchan_addr like ('%s') AND abook_channel = %d ",
dbesc(((strpos($newname,'@')) ? $newname : $newname . '@%')),

Loading…
Cancel
Save