provide xchan_url if there is no xchan_addr

This commit is contained in:
Mario Vavti 2019-05-02 12:58:24 +02:00
parent 516167c0f8
commit b6d598a001
2 changed files with 2 additions and 2 deletions

View File

@ -373,7 +373,7 @@ class ThreadItem {
'id' => $this->get_id(), 'id' => $this->get_id(),
'mid' => $item['mid'], 'mid' => $item['mid'],
'parent' => $item['parent'], 'parent' => $item['parent'],
'author_id' => $item['author']['xchan_addr'], 'author_id' => (($item['author']['xchan_addr']) ? $item['author']['xchan_addr'] : $item['author']['xchan_url']),
'isevent' => $isevent, 'isevent' => $isevent,
'attend' => $attend, 'attend' => $attend,
'consensus' => $consensus, 'consensus' => $consensus,

View File

@ -1155,7 +1155,7 @@ function doreply(parent, ident, owner, hint) {
var btn = i.html().replace(/<[^>]*>/g, '').trim(); var btn = i.html().replace(/<[^>]*>/g, '').trim();
i.html('<i class="fa fa-reply" ></i> ' + btn); i.html('<i class="fa fa-reply" ></i> ' + btn);
i.prop('title', hint); i.prop('title', hint);
form.find('textarea').val("@{" + owner + "}\n"); form.find('textarea').val("@{" + owner + "} ");
$('#comment-edit-text-' + parent.toString()).focus(); $('#comment-edit-text-' + parent.toString()).focus();
} }