From 6a4dd6ed4b4dcb3fee1ca193eb81ac3b5398e77a Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 28 Dec 2020 11:01:38 -0500 Subject: [PATCH] [twitter] Add yet another expected field for thread parent select in twitter_post_hook() --- twitter/twitter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitter/twitter.php b/twitter/twitter.php index 47328ecaf..68ca7faf7 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -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;