]> git.mxchange.org Git - friendica-addons.git/blobdiff - twitter/twitter.php
Merge remote-tracking branch 'upstream/2019.06-rc' into false-positive
[friendica-addons.git] / twitter / twitter.php
index f6d5912dd6098ad9d3101816eb99463b636e7203..166c99ef907fc560968a2181f276eccf7085a719 100644 (file)
@@ -814,7 +814,7 @@ function twitter_prepare_body(App $a, array &$b)
        if ($b["preview"]) {
                $max_char = 280;
                $item = $b["item"];
-               $item["plink"] = $a->getBaseURL() . "/display/" . $a->user["nickname"] . "/" . $item["parent"];
+               $item["plink"] = $a->getBaseURL() . "/display/" . $item["guid"];
 
                $condition = ['uri' => $item["thr-parent"], 'uid' => local_user()];
                $orig_post = Item::selectFirst(['author-link'], $condition);