[buddypress-trac] [BuddyPress] #2372: @mention in wordpress post comment

buddypress-trac noreply at wordpress.org
Thu Nov 21 13:26:13 UTC 2013


#2372: @mention in wordpress post comment
-------------------------+-----------------------------
 Reporter:  intimez      |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  Future Release
Component:  Blogs        |     Version:  1.5
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------------

Comment (by henrywright):

 > We currently store only short excerpts of blog posts in the 'content'
 column of the activity table

 I'm wondering why @-mention content (excerpt or full text) has to be
 stored at all? A lightweight approach to blog post and comment
 @-mentioning could be taken:

 1. At the point which the blog post or comment is successfully submitted
 and saved, parse the text for @-usernames maybe using {{{preg_match_all}}}

 2. Check the found usernames are active members

 3. Trigger a BP core notification and an email alert to all valid members
 receiving the mention.

 This would avoid:

 1. Activity table bloat and big haystacks
 2. Activity component dependency (unless the triggering of BP core
 notifications is currently dependant on activity?)
 3. Performance issues due to laborious {{{LIKE}}} queries

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/2372#comment:13>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list