]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Show correct number of POSTs in conversation "more" link
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 15 Jul 2014 12:26:42 +0000 (14:26 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 15 Jul 2014 12:26:42 +0000 (14:26 +0200)
classes/Conversation.php

index 3acc283d62a2eb4ddce6c77206aaed4ff246c933..c8d922a2f0f50d6ef504b73a4b8da45cecdd9210 100755 (executable)
@@ -97,6 +97,7 @@ class Conversation extends Managed_DataObject
 
         $notice               = new Notice();
         $notice->conversation = $id;
+        $notice->whereAddIn('verb', array(ActivityVerb::POST, ActivityUtils::resolveUri(ActivityVerb::POST, true)), $notice->columnType('verb'));
         $cnt                  = $notice->count();
 
         self::cacheSet($keypart, $cnt);