gnu-social/classes
Evan Prodromou 4d9daf2149 Use notice for context when deciding who @nickname refers to
In a federated system, "@nickname" is insufficient to uniquely
identify a user. However, it's a very convenient idiom. We need to
guess from context who 'nickname' refers to.

Previously, we were using the sender's profile (or what we knew about
them) as the only context. So, we assumed that they'd be mentioning to
someone they followed, or someone who followed them, or someone on
their own server.

Now, we include the notice information for context. We check to see if
the notice is a reply to another notice, and if the author of the
original notice has the nickname 'nickname', then the mention is
probably for them. Alternately, if the original notice mentions someone
with nickname 'nickname', then this notice is probably referring to
_them_.

Doing this kind of context sleuthing means we have to render the
content very late in the notice-saving process.
2010-02-27 16:06:46 -05:00
..
Avatar.php let avatars be served over SSL 2010-02-11 16:51:15 -05:00
Config.php ...and drop the unnecessary &reference from child class pkeyGet() overrides. 2010-01-06 14:28:40 -08:00
Confirm_address.php change function headers to K&R style 2008-12-23 14:33:23 -05:00
Consumer.php Allow developers to delete OAuth applications 2010-02-05 03:18:43 +00:00
Conversation.php - conversation.uri needs to be nullable 2010-02-17 01:11:14 -08:00
Deleted_notice.php check correct define (not backwards compatible) 2009-09-15 21:12:44 -04:00
Design.php let backgrounds be put under SSL 2010-02-11 17:03:31 -05:00
Fave.php Add events for favor and disfavor 2010-02-20 12:03:32 -05:00
File_oembed.php check before saving a thumbnail 2010-01-10 13:25:16 -08:00
File_redirection.php Revert "Remove more contractions" 2009-11-09 20:01:46 +01:00
File_thumbnail.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
File_to_post.php ...and drop the unnecessary &reference from child class pkeyGet() overrides. 2010-01-06 14:28:40 -08:00
File.php let files go to SSL dir too 2010-02-11 17:06:57 -05:00
Foreign_link.php Take token field out of foreign_link 2009-08-25 15:48:06 -04:00
Foreign_service.php change function headers to K&R style 2008-12-23 14:33:23 -05:00
Foreign_subscription.php change function headers to K&R style 2008-12-23 14:33:23 -05:00
Foreign_user.php change foreign_user.id to bigint (for Twitter, Facebook, etc.) 2009-06-24 14:44:02 -07:00
Group_alias.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
Group_block.php ...and drop the unnecessary &reference from child class pkeyGet() overrides. 2010-01-06 14:28:40 -08:00
Group_inbox.php ...and drop the unnecessary &reference from child class pkeyGet() overrides. 2010-01-06 14:28:40 -08:00
Group_member.php add events for subscribing to people and joining groups 2010-01-13 02:16:13 -08:00
Inbox.php drop debug messages from inbox deletion fix 2010-02-04 15:16:27 -08:00
Invitation.php change function headers to K&R style 2008-12-23 14:33:23 -05:00
Local_group.php modify group actions so they use Local_group to look up by nickname 2010-02-25 08:44:15 -05:00
Location_namespace.php flip x flag on generated files 2009-10-21 22:43:41 -04:00
Login_token.php Redirect to a one-time-password when ssl and regular server are different 2010-01-09 15:26:06 -08:00
Memcached_DataObject.php Add class and (if present) id to DB_DataObject error exceptions; often they're VERRRRRY vague, and it helps to know what type of item is failing! 2010-02-24 01:09:12 +00:00
Message.php create a method for notification for new messages, and use it 2009-12-15 10:31:25 -05:00
Nonce.php PHP 5.3 compatibility hack for DB_DataObject 2010-02-12 11:15:12 -08:00
Notice_inbox.php Fix regressions in XMPP output during inbox refactoring 2010-01-13 18:17:36 +00:00
Notice_source.php change function headers to K&R style 2008-12-23 14:33:23 -05:00
Notice_tag.php Offload inbox updates to a queue handler to speed up posting online 2010-01-25 18:08:21 -05:00
Notice.php Use notice for context when deciding who @nickname refers to 2010-02-27 16:06:46 -05:00
Oauth_application_user.php Remove verifier from Oauth_application_user (not needed there) 2010-01-24 16:36:05 -08:00
Oauth_application.php Allow developers to delete OAuth applications 2010-02-05 03:18:43 +00:00
Profile_block.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
Profile_role.php define a constant for the 'owner' role of a site 2010-01-29 15:15:04 -05:00
Profile_tag.php fix problem with dupe tags in profile 2009-02-28 15:17:49 -08:00
Profile.php Move ActivityObject and related stuff to core 2010-02-22 17:10:50 -08:00
Queue_item.php XMPP queued output & initial retooling of DB queue manager to support non-Notice objects. 2010-01-22 12:52:36 -08:00
Related_group.php some class files had x bit set 2009-05-22 21:11:46 -04:00
Remember_me.php change function headers to K&R style 2008-12-23 14:33:23 -05:00
Remote_profile.php Fix regression in remote subscription; added hasRole() shadow method on Remote_profile. 2009-11-25 22:23:21 +00:00
Reply.php Ticket #1567 - API: Change before_id parameter to max_id 2009-05-29 16:32:55 -07:00
Safe_DataObject.php Stomp queue restructuring for mass scalability: 2010-02-16 09:16:51 -08:00
Session.php additional debugging data for Sessions 2010-01-28 13:53:28 -05:00
Sms_carrier.php change function headers to K&R style 2008-12-23 14:33:23 -05:00
status_network.ini Fixes for status_network db object .ini and tag setter script 2010-01-28 20:09:17 -08:00
Status_network.php Stomp queue restructuring for mass scalability: 2010-02-16 09:16:51 -08:00
statusnet.ini Fix a few keys that got dropped from statusnet.ini by mistake 2010-02-25 21:46:53 -08:00
statusnet.links.ini PHP 5.3 compatibility hack for DB_DataObject 2010-02-12 11:15:12 -08:00
Subscription.php Refactor subs_* functions for remote use 2010-02-19 08:16:45 -05:00
Token.php Add verifier and verified callback to token for OAuth 1.0a 2010-01-24 16:36:05 -08:00
User_group.php Rationalize group activity stuff 2010-02-25 13:34:43 -08:00
User_location_prefs.php Add magic formula to keep DB_DataObject from treating location prefs pkey as autoincrement 2009-12-30 08:56:43 -10:00
User_username.php Move Authorization and Authentication plugin structures into core, instead of as plugins. 2010-01-05 13:56:22 -05:00
User.php Refactor subs_* functions for remote use 2010-02-19 08:16:45 -05:00