[twitter] Add yet another expected field for thread parent select in twitter_post_hook()

pull/1063/head
Hypolite Petovan 2020-12-28 11:01:38 -05:00 committed by GitHub
parent 79b49cbaee
commit 6a4dd6ed4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -559,7 +559,7 @@ function twitter_post_hook(App $a, array &$b)
}
$condition = ['uri' => $b["thr-parent"], 'uid' => $b["uid"]];
$thr_parent = Item::selectFirst(['uri', 'extid', 'author-nick', 'author-network'], $condition);
$thr_parent = Item::selectFirst(['uri', 'extid', 'author-link', 'author-nick', 'author-network'], $condition);
if (!DBA::isResult($thr_parent)) {
Logger::warning('No parent found', ['thr-parent' => $b["thr-parent"]]);
return;