Add variables for threaded comments support
This commit is contained in:
parent
5abbfd3f19
commit
6db323b15e
@ -305,6 +305,7 @@ class ThreadItem {
|
|||||||
if($this->is_commentable() && $observer) {
|
if($this->is_commentable() && $observer) {
|
||||||
$like = array( t("I like this \x28toggle\x29"), t("like"));
|
$like = array( t("I like this \x28toggle\x29"), t("like"));
|
||||||
$dislike = array( t("I don't like this \x28toggle\x29"), t("dislike"));
|
$dislike = array( t("I don't like this \x28toggle\x29"), t("dislike"));
|
||||||
|
$reply_to = array( t("Reply on this comment"), t("reply"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($shareable) {
|
if ($shareable) {
|
||||||
@ -348,9 +349,6 @@ class ThreadItem {
|
|||||||
$list_unseen_txt = (($unseen_comments) ? sprintf('%d unseen',$unseen_comments) : '');
|
$list_unseen_txt = (($unseen_comments) ? sprintf('%d unseen',$unseen_comments) : '');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$children = $this->get_children();
|
$children = $this->get_children();
|
||||||
|
|
||||||
$has_tags = (($body['tags'] || $body['categories'] || $body['mentions'] || $body['attachments'] || $body['folders']) ? true : false);
|
$has_tags = (($body['tags'] || $body['categories'] || $body['mentions'] || $body['attachments'] || $body['folders']) ? true : false);
|
||||||
@ -373,6 +371,8 @@ class ThreadItem {
|
|||||||
'text' => strip_tags($body['html']),
|
'text' => strip_tags($body['html']),
|
||||||
'id' => $this->get_id(),
|
'id' => $this->get_id(),
|
||||||
'mid' => $item['mid'],
|
'mid' => $item['mid'],
|
||||||
|
'parent' => $item['parent'],
|
||||||
|
'author_id' => $item['author']['xchan_addr'],
|
||||||
'isevent' => $isevent,
|
'isevent' => $isevent,
|
||||||
'attend' => $attend,
|
'attend' => $attend,
|
||||||
'consensus' => $consensus,
|
'consensus' => $consensus,
|
||||||
@ -428,6 +428,7 @@ class ThreadItem {
|
|||||||
'emojis' => (($this->is_toplevel() && $this->is_commentable() && $observer && feature_enabled($conv->get_profile_owner(),'emojis')) ? '1' : ''),
|
'emojis' => (($this->is_toplevel() && $this->is_commentable() && $observer && feature_enabled($conv->get_profile_owner(),'emojis')) ? '1' : ''),
|
||||||
'like' => $like,
|
'like' => $like,
|
||||||
'dislike' => ((feature_enabled($conv->get_profile_owner(),'dislike')) ? $dislike : ''),
|
'dislike' => ((feature_enabled($conv->get_profile_owner(),'dislike')) ? $dislike : ''),
|
||||||
|
'reply_to' => (((! $this->is_toplevel()) && feature_enabled($conv->get_profile_owner(),'reply_to')) ? $reply_to : ''),
|
||||||
'share' => $share,
|
'share' => $share,
|
||||||
'embed' => $embed,
|
'embed' => $embed,
|
||||||
'rawmid' => $item['mid'],
|
'rawmid' => $item['mid'],
|
||||||
@ -869,4 +870,3 @@ class ThreadItem {
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user