aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 3db8d7204..17822d0d5 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -972,7 +972,10 @@ function item_photo_menu($item){
*/
function builtin_activity_puller($item, &$conv_responses) {
+ // if this item is a post or comment there's nothing for us to do here, just return.
+ if(activity_match($item['verb'],ACTIVITY_POST))
+ return;
foreach($conv_responses as $mode => $v) {
@@ -1036,6 +1039,9 @@ function builtin_activity_puller($item, &$conv_responses) {
$conv_responses[$mode][$item['thr_parent']] ++;
$conv_responses[$mode][$item['thr_parent'] . '-l'][] = $url;
+
+ // there can only be one activity verb per item so if we found anything, we can stop looking
+ $return;
}
}