diff options
author | Evan Prodromou <evan@status.net> | 2010-02-21 16:20:30 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-02-21 16:20:30 -0500 |
commit | ab3db8c89971fc6148fbc8e0c031f9518c280bf1 (patch) | |
tree | 07dff69938839c51d4b2eec3d991c1e73c04e18c /EVENTS.txt | |
parent | 4209082677eaa16a5826bcb1d6984bfe1670f97b (diff) |
Combine code that finds mentions into one place and add hook points
Combined the code that finds mentions of other profiles into one place.
common_find_mentions() finds mentions and calls hooks to allow
supplemental syntax for mentions (like OStatus).
common_linkify_mentions() links mentions.
common_linkify_mention() links a mention.
Notice::saveReplies() now uses common_find_mentions() instead of
trying to parse everything again.
Diffstat (limited to 'EVENTS.txt')
-rw-r--r-- | EVENTS.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/EVENTS.txt b/EVENTS.txt index c108606ce..d3c2fb7bf 100644 --- a/EVENTS.txt +++ b/EVENTS.txt @@ -748,3 +748,18 @@ EndDisfavorNotice: After saving a notice as a favorite - $profile: profile of the person faving (can be remote!) - $notice: notice being faved +StartFindMentions: start finding mentions in a block of text +- $sender: sender profile +- $text: plain text version of the notice +- &$mentions: mentions found so far. Array of arrays; each array + has 'mentioned' (array of mentioned profiles), 'url' (url to link as), + 'title' (title of the link), 'position' (position of the text to + replace), 'text' (text to replace) + +EndFindMentions: end finding mentions in a block of text +- $sender: sender profile +- $text: plain text version of the notice +- &$mentions: mentions found so far. Array of arrays; each array + has 'mentioned' (array of mentioned profiles), 'url' (url to link as), + 'title' (title of the link), 'position' (position of the text to + replace), 'text' (text to replace) |