forked from GNUsocial/gnu-social
Add scope bitmap for notices
This commit is contained in:
parent
83fb5e6023
commit
7f74aa6c20
@ -73,6 +73,7 @@ class Notice extends Memcached_DataObject
|
|||||||
public $location_ns; // int(4)
|
public $location_ns; // int(4)
|
||||||
public $repeat_of; // int(4)
|
public $repeat_of; // int(4)
|
||||||
public $object_type; // varchar(255)
|
public $object_type; // varchar(255)
|
||||||
|
public $scope; // int(4)
|
||||||
|
|
||||||
/* Static get */
|
/* Static get */
|
||||||
function staticGet($k,$v=NULL)
|
function staticGet($k,$v=NULL)
|
||||||
|
@ -337,6 +337,7 @@ location_id = 1
|
|||||||
location_ns = 1
|
location_ns = 1
|
||||||
repeat_of = 1
|
repeat_of = 1
|
||||||
object_type = 2
|
object_type = 2
|
||||||
|
scope = 1
|
||||||
|
|
||||||
[notice__keys]
|
[notice__keys]
|
||||||
id = N
|
id = N
|
||||||
|
@ -202,6 +202,9 @@ $schema['notice'] = array(
|
|||||||
'location_ns' => array('type' => 'int', 'description' => 'namespace for location'),
|
'location_ns' => array('type' => 'int', 'description' => 'namespace for location'),
|
||||||
'repeat_of' => array('type' => 'int', 'description' => 'notice this is a repeat of'),
|
'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'),
|
'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'),
|
'primary key' => array('id'),
|
||||||
'unique keys' => array(
|
'unique keys' => array(
|
||||||
|
Loading…
Reference in New Issue
Block a user