X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FNotice_tag.php;h=9d6bec6d2f401b2ae4ec7f8cdd971198815c84f9;hb=1981cb76622977ed3a0a480bfcb427b09ca3c688;hp=b9cbcd10693a0d4e54228057321bf6d95fe47db4;hpb=7a9777df053a9007b5eaa71f5437584065b615a5;p=quix0rs-gnu-social.git diff --git a/classes/Notice_tag.php b/classes/Notice_tag.php index b9cbcd1069..9d6bec6d2f 100644 --- a/classes/Notice_tag.php +++ b/classes/Notice_tag.php @@ -29,10 +29,6 @@ class Notice_tag extends Managed_DataObject public $notice_id; // int(4) primary_key not_null public $created; // datetime() not_null - /* Static get */ - function staticGet($k,$v=null) - { return Memcached_DataObject::staticGet('Notice_tag',$k,$v); } - /* the code above is auto generated do not remove the tag below */ ###END_AUTOCODE @@ -59,9 +55,10 @@ class Notice_tag extends Managed_DataObject static function getStream($tag, $offset=0, $limit=20, $sinceId=0, $maxId=0) { - $stream = new TagNoticeStream($tag); - - return $stream->getNotices($offset, $limit, $sinceId, $maxId); + // FIXME: Get the Profile::current value some other way + // to avoid confusino between queue processing and session. + $stream = new TagNoticeStream($tag, Profile::current()); + return $stream; } function blowCache($blowLast=false) @@ -72,11 +69,6 @@ class Notice_tag extends Managed_DataObject } } - function pkeyGet($kv) - { - return Memcached_DataObject::pkeyGet('Notice_tag', $kv); - } - static function url($tag) { if (common_config('singleuser', 'enabled')) {