forked from GNUsocial/gnu-social
save synch status for different timelines
This commit is contained in:
@@ -208,6 +208,7 @@ class TwitterBridgePlugin extends Plugin
|
||||
include_once $dir . '/' . strtolower($cls) . '.php';
|
||||
return false;
|
||||
case 'Notice_to_status':
|
||||
case 'Twitter_synch_status':
|
||||
include_once $dir . '/' . $cls . '.php';
|
||||
return false;
|
||||
default:
|
||||
@@ -378,6 +379,19 @@ class TwitterBridgePlugin extends Plugin
|
||||
{
|
||||
$schema = Schema::get();
|
||||
|
||||
// For saving the last-synched status of various timelines
|
||||
// home_timeline, messages (in), messages (out), ...
|
||||
|
||||
$schema->ensureTable('twitter_synch_status',
|
||||
array(new ColumnDef('user_id', 'integer', null,
|
||||
false, 'PRI'),
|
||||
new ColumnDef('timeline', 'varchar', 255,
|
||||
false, 'PRI'),
|
||||
new ColumnDef('last_id', 'bigint', null, // XXX: check for PostgreSQL
|
||||
false),
|
||||
new ColumnDef('created', 'datetime', null,
|
||||
false)));
|
||||
|
||||
// For storing user-submitted flags on profiles
|
||||
|
||||
$schema->ensureTable('notice_to_status',
|
||||
|
Reference in New Issue
Block a user