summaryrefslogtreecommitdiff
path: root/plugins/Facebook/FacebookPlugin.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-02-27 16:06:46 -0500
committerEvan Prodromou <evan@status.net>2010-02-27 16:06:46 -0500
commit4d9daf21493e75354190667e5c1ab3140b46dee1 (patch)
tree9888358c25c1aba5eb2804bdf52a6dd5c9e2275d /plugins/Facebook/FacebookPlugin.php
parent45a6ecf26dae0dfc2ba4f9f968794e87cdf68ecb (diff)
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.
Diffstat (limited to 'plugins/Facebook/FacebookPlugin.php')
0 files changed, 0 insertions, 0 deletions