aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-10-24 18:19:39 -0700
committerfriendica <info@friendica.com>2013-10-24 18:19:39 -0700
commit336768715ca2f4747c74ded1feda651b3d4b8e80 (patch)
treedb53d23b0d987936701d90714fcfea0addcbdacc /include/conversation.php
parent3fa673772641ed62f3a565f865a9b29555e84fc0 (diff)
downloadvolse-hubzilla-336768715ca2f4747c74ded1feda651b3d4b8e80.tar.gz
volse-hubzilla-336768715ca2f4747c74ded1feda651b3d4b8e80.tar.bz2
volse-hubzilla-336768715ca2f4747c74ded1feda651b3d4b8e80.zip
Optionally pass a prepared "top level" item into conversation(). This will eventually be used by the photos module where the "top level item" of the conversation is a photo with editing and album navigation controls and doesn't look anything like a post.
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/conversation.php b/include/conversation.php
index c1d8e91f9..a8b3150b4 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -397,7 +397,7 @@ function visible_activity($item) {
*/
-function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional') {
+function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional', $prepared_item = '') {
$tstart = dba_timer();
$t0 = $t1 = $t2 = $t3 = $t4 = $t5 = $t6 = null;
@@ -723,7 +723,7 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional') {
require_once('include/ConversationObject.php');
require_once('include/ItemObject.php');
- $conv = new Conversation($mode, $preview);
+ $conv = new Conversation($mode, $preview, $prepared_item);
// In the display mode we don't have a profile owner.
@@ -764,7 +764,7 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional') {
}
- // Can we put this after the visibility check?
+
like_puller($a,$item,$alike,'like');
if(feature_enabled($profile_owner,'dislike'))