]> git.mxchange.org Git - friendica-addons.git/commitdiff
[twitter] Add yet another expected field for thread parent select in twitter_post_hook()
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 28 Dec 2020 16:01:38 +0000 (11:01 -0500)
committerGitHub <noreply@github.com>
Mon, 28 Dec 2020 16:01:38 +0000 (11:01 -0500)
twitter/twitter.php

index 47328ecaffabcda4a20be320ef0f203e52183d8c..68ca7faf7b42f97f517239f8a8226d219584b0c2 100644 (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;