From: Diogo Cordeiro Date: Thu, 25 Apr 2019 17:51:44 +0000 (+0100) Subject: Fix bug in 36a55d84. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0042971d74;p=quix0rs-gnu-social.git Fix bug in 36a55d84. We still have to further review and improve the caching of streams. Important related changes: 2272cc24#diff-8633314d55a2834ab2ea425d7157bec14aca672L60 Important related discussion: https://github.com/chimo/gs-rediscache/issues/{1,2} --- diff --git a/lib/inboxnoticestream.php b/lib/inboxnoticestream.php index 83fa5eaad7..c8b5ccd7af 100644 --- a/lib/inboxnoticestream.php +++ b/lib/inboxnoticestream.php @@ -41,6 +41,7 @@ if (!defined('GNUSOCIAL')) { * @author Evan Prodromou * @author Mikael Nordfeldth * @author Alexei Sorokin + * @author chimo * @copyright 2011 StatusNet, Inc. * @copyright 2014 Free Software Foundation, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 @@ -56,8 +57,7 @@ class InboxNoticeStream extends ScopingNoticeStream */ public function __construct(Profile $target, Profile $scoped = null) { - // FIXME: we don't use CachingNoticeStream - but maybe we should? - parent::__construct(new CachingNoticeStream(new RawInboxNoticeStream($target), 'profileall'), $scoped); + parent::__construct(new CachingNoticeStream(new RawInboxNoticeStream($target), 'profileall:'.$target->getID()), $scoped); } }