mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update Entity Extractor, fix broken tests
This commit is contained in:
parent
53122183f3
commit
6e0cb9dca8
1 changed files with 1 additions and 1 deletions
|
@ -452,7 +452,7 @@ class Extractor extends Regex
|
|||
$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]);
|
||||
$screenname = trim($all[0]) == '@'.$username[0] ? $username[0] : trim($all[0]);
|
||||
if(\App\Profile::whereUsername($screenname)->exists() == false) {
|
||||
if(config('app.env') == 'production' && \App\Profile::whereUsername($screenname)->exists() == false) {
|
||||
continue;
|
||||
}
|
||||
$entity = [
|
||||
|
|
Loading…
Reference in a new issue