From: Evan Prodromou Date: Thu, 17 Mar 2011 02:30:31 +0000 (-0400) Subject: Add scope bitmap for notices X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7f74aa6c203f0a21f634ea833679369b0f1fc2bf;p=quix0rs-gnu-social.git Add scope bitmap for notices --- diff --git a/classes/Notice.php b/classes/Notice.php index b228a49c7c..b432ad1ea5 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -73,6 +73,7 @@ class Notice extends Memcached_DataObject public $location_ns; // int(4) public $repeat_of; // int(4) public $object_type; // varchar(255) + public $scope; // int(4) /* Static get */ function staticGet($k,$v=NULL) diff --git a/classes/statusnet.ini b/classes/statusnet.ini index f648fb3fbf..12c59daae0 100644 --- a/classes/statusnet.ini +++ b/classes/statusnet.ini @@ -337,6 +337,7 @@ location_id = 1 location_ns = 1 repeat_of = 1 object_type = 2 +scope = 1 [notice__keys] id = N diff --git a/db/core.php b/db/core.php index 928186d94d..3e439e5010 100644 --- a/db/core.php +++ b/db/core.php @@ -202,6 +202,9 @@ $schema['notice'] = array( 'location_ns' => array('type' => 'int', 'description' => 'namespace for location'), 'repeat_of' => array('type' => 'int', 'description' => 'notice this is a repeat of'), 'object_type' => array('type' => 'varchar', 'length' => 255, 'description' => 'URI representing activity streams object type', 'default' => 'http://activitystrea.ms/schema/1.0/note'), + 'scope' => array('type' => 'int', + 'default' => '1', + 'description' => 'bit map for distribution scope; 0 = everywhere; 1 = this server only; 2 = addressees; 4 = followers'), ), 'primary key' => array('id'), 'unique keys' => array(