forked from mirror/pixelfed
Update Entity Extractor
This commit is contained in:
parent
144678fc9c
commit
f10ed49586
|
@ -452,6 +452,9 @@ class Extractor extends Regex
|
||||||
$start_position = $at[1] > 0 ? StringUtils::strlen(substr($tweet, 0, $at[1])) : $at[1];
|
$start_position = $at[1] > 0 ? StringUtils::strlen(substr($tweet, 0, $at[1])) : $at[1];
|
||||||
$end_position = $start_position + StringUtils::strlen($at[0]) + StringUtils::strlen($username[0]);
|
$end_position = $start_position + StringUtils::strlen($at[0]) + StringUtils::strlen($username[0]);
|
||||||
$screenname = trim($all[0]) == '@'.$username[0] ? $username[0] : trim($all[0]);
|
$screenname = trim($all[0]) == '@'.$username[0] ? $username[0] : trim($all[0]);
|
||||||
|
if(\App\Profile::whereUsername($screenname)->exists() == false) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$entity = [
|
$entity = [
|
||||||
'screen_name' => $screenname,
|
'screen_name' => $screenname,
|
||||||
'list_slug' => $list_slug[0],
|
'list_slug' => $list_slug[0],
|
||||||
|
|
Loading…
Reference in New Issue