Removed Inbox from core (unused since 4b2a66ed29)

Added the following FIXME:
How should a Twitter user get their Inbox filled with foreign tweets?

Every imported Twitter user has a profile in the Profile table, so we
could setup a Subscription entry for each of those, meaning they get
collected in the InboxNoticeStream... But this would mean a lot of
unnecessary entries and listings that generally just point to the
locked down Twitter service.

Let's figure out a good relation so we can connect any profile to any
imported foreign notice, so it shows up in the "all" feed.
This commit is contained in:
Mikael Nordfeldth
2014-03-06 04:36:00 +01:00
parent 4b2a66ed29
commit 2272cc244d
10 changed files with 34 additions and 271 deletions

View File

@@ -55,9 +55,8 @@ class TweetInQueueHandler extends QueueHandler
if ($flink instanceof Foreign_link) {
common_log(LOG_DEBUG, "TweetInQueueHandler - Got flink so add notice ".
$notice->id." to inbox ".$flink->user_id);
// @fixme this should go through more regular channels?
Inbox::insertNotice($notice, $flink->user_id);
}else {
// FIXME: How should a Twitter user get their Inbox filled with foreign tweets?
} else {
common_log(LOG_DEBUG, "TweetInQueueHandler - No flink found for foreign user ".$receiver);
}
}

View File

@@ -170,11 +170,7 @@ $stream->hookEvent('status', function($data, $context) {
$importer = new TwitterImport();
printf("\timporting...");
$notice = $importer->importStatus($data);
if ($notice instanceof Notice) {
global $myuser;
Inbox::insertNotice($notice, $myuser->id);
printf(" %s\n", $notice->id);
} else {
if (!$notice instanceof Notice) {
printf(" FAIL\n");
}
}