[various] Remove /display/{nick}/{id} URL structure publishing

This commit is contained in:
Hypolite Petovan 2019-05-05 22:03:22 -04:00
parent 246057726b
commit 09967cc664
3 changed files with 4 additions and 4 deletions

View file

@ -735,7 +735,7 @@ function statusnet_prepare_body(App $a, &$b)
}
$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', 'uri'], $condition);