]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
mark notices as local
authorEvan Prodromou <evan@prodromou.name>
Tue, 22 Jul 2008 14:16:14 +0000 (10:16 -0400)
committerEvan Prodromou <evan@prodromou.name>
Tue, 22 Jul 2008 14:16:14 +0000 (10:16 -0400)
darcs-hash:20080722141614-84dde-b80c6945fdb90a5f67acaba65a1e4c2b306b1f8e.gz

classes/Notice.php
classes/stoica.ini
db/laconica.sql

index a00114f95df2043db1a0258c7c009ceb629e6352..1d157b8a00d87222cf239dd18f622b0cb2e3c2cf 100644 (file)
@@ -39,6 +39,7 @@ class Notice extends DB_DataObject
     public $created;                         // datetime()   not_null
     public $modified;                        // timestamp()   not_null default_CURRENT_TIMESTAMP
     public $reply_to;                        // int(4)  
+    public $is_local;                        // tinyint(1)  
 
     /* Static get */
     function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Notice',$k,$v); }
index 99196909e9bb66915039a8427aaeadfe50c96112..1fa0a333f10e7dab0c28e492df88aa1b7627b207 100644 (file)
@@ -61,6 +61,7 @@ url = 2
 created = 142
 modified = 384
 reply_to = 1
+is_local = 17
 
 [notice__keys]
 id = N
index 66510b148bccda8fb8b3824ece6f0a5d6a5fa725..b6de405f9073fc83c2acf0320db6436d44b9da01 100644 (file)
@@ -100,8 +100,11 @@ create table notice (
     created datetime not null comment 'date this record was created',
     modified timestamp comment 'date this record was modified',
     reply_to integer comment 'notice replied to (usually a guess)' references notice (id),
-
+    is_local tinyint default 0 comment 'notice was generated by a user',
+    
     index notice_profile_id_idx (profile_id),
+    index notice_created_idx (profile_id),
+    
     FULLTEXT(content)
 ) ENGINE=MyISAM;