New feature: mentions in posts

Somehow JGO can now track usernames in posts. :persecutioncomplex: This includes quotes, but also twitter-style (@someone) notation is supported. This seemingly arbitrary functionality enables us to organically tie posts and people together in discussions, and for example easily bring posts to the attention of others.

Once the forum has determined that you were mentioned in a post, it will in turn notify you in the sidebar listing. This listing will be relocated to the ‘unread posts’ page in the near future.

[quote=""]
@princec: we’ll see how it evolves - ideas, bug reports and suggestions are welcome!

Question: does it count nested quotes, or only top-level ones? I ask because I often see people quoting quotes of quotes when they’re really only replying to the most recent post in the chain (grr) and that would be pretty annoying to be spammed with notifications.

It strips quote contents (the parser is depth-aware)

Nice.
(I was momentarily perplexed there by you somehow seemingly responding to my post before I made it… then edits…)

… but @ra4king is. :point:

Lines of text starting with a username followed by a ‘:’ are also attempted to be resolved to a member in the database.

A full list of patterns:

  • [ quote author=…] (in quote ‘roots’)
  • @author” (outside of quotes)
  • “author:” (outside of quotes)

As am I.

Now, if you make an edit, does the prior would-have-been recipient’s mentions not show it if they haven’t seen it yet? Does it respond to updates? (I’m not sure it really matters, but I’m curious)

It responds to updates and deletes, it refreshes the denormalized data, so if you hadn’t seen your ‘mention’ yet, you will never - it won’t linger… for long: the typical latency is 10s. :emo: (cronjob interval)

You couldn’t have thought of everything…
Will it make me a sandwich? (and mention it when it’s ready)

Well, I’m pondering over whether to flag mentions as ‘read’ - that’d be ‘fun’, right?

Think of the Big Data analysis potential, or, ehm, how it will affect your ranking, ofcourse.

Really nice feature. I usually read most posts, but now I won’t miss all the times that I’m being back talked in some obscure thread :slight_smile:

I was notified by the way so I think you missed something :point:

Mike

Whoops, eager regexp screwup, patching!

Update: patched! (rebuilding index…)

One more thing, every quote of someone with a username that starts with “Mike” is now showing up as my latest mentions. At the moment I don’t think there are too many of them active, but maybe that will mess it up for someone else’s name as well.

Mike

Can you give me the message-id from a post that triggers this?

Ah… members with a space in their name, like ‘Mike Jacobs’

* Riven ponders…

Also with a dot like mike.emery

Well, they aren’t active on the forum anymore so let’s just call it a hidden feature :slight_smile:

Mike

I fixed it, and removed ‘the common quote’ from the mentions, as it was rather redundant to begin with.

So if I do say

@Riven

Do you get some sort of notification or message? Or is that still in the works? A nice little notification center would be nice, fairly straight forward to implement.

Yup! @Gibbo3771, just like you get one now.

Cool, where? lol. Never seen anything.

EDIT: This is a nice addition regardless of how it notifies you, very useful if you stumble across a thread and you want to tag someone you know can help.

In the sidebar (which is hidden on mobile devices).

Oh nice, thank you!