]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add scope bitmap for notices
authorEvan Prodromou <evan@status.net>
Thu, 17 Mar 2011 02:30:31 +0000 (22:30 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 22 Mar 2011 15:56:28 +0000 (11:56 -0400)
classes/Notice.php
classes/statusnet.ini
db/core.php

index b228a49c7c7991a4215b5504b8e8686a2733ca0d..b432ad1ea53a4e12bb40e3c28fa2206244048744 100644 (file)
@@ -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)
index f648fb3fbf183a30951ea091efd18155bc9d76dc..12c59daae0324a6a1085ca56440e56110c53c5f9 100644 (file)
@@ -337,6 +337,7 @@ location_id = 1
 location_ns = 1
 repeat_of = 1
 object_type = 2
+scope = 1
 
 [notice__keys]
 id = N
index 928186d94d9a69d96b1119b062499519a73bb4f8..3e439e5010e6d0dc24181d81f7b8bfe3283596bd 100644 (file)
@@ -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(