jdpage / w.pl

A small wiki
0 stars 1 forks source link

Add support for mentions #6

Open jdpage opened 8 years ago

jdpage commented 8 years ago

Add support for mentions. Mentions take the form of the link rewrite [[mention:username]] which behaves as follows:

  1. a mention of the named user by the editing user at the time of edit is added to the "mentions" table
  2. the link is rewritten to [[user:username]], to prevent a mention from being logged every time the page is edited

The mentions for a user can be retrieved from

jdpage commented 8 years ago

@woodrowbarlow is this suitable for your purposes? You can use a mention: to notify someone, and a remention: to follow a page.

jdpage commented 8 years ago

Removing a remention: should probably generate one last notification.

woodrowbarlow commented 8 years ago

the only use-case i can imagine for rementions is to follow a page, and i think following a page would be better done by simply subscribing to that page's rss feed (that way, other people can't force you to follow a page or make you unfollow a page). especially since to get the notification from a remention you'd need to be following a feed (your user feed) anyway.

jdpage commented 8 years ago

You're right, the only use for rementions is to follow a page. I considered the option of saying that the best approach is the follow the RSS feed, but it's worth noting that not everyone uses a feed reader, myself included (!). I'd be using and recommending an RSS->email service, which would quickly become cumbersome if one had to add each feed separately. Rementions lets you just follow your user feed, which will syndicate edits to your user page, mentions, and rementions.

As far as "making you unfollow" goes, the biggest risk is that you unfollow the page and you don't notice; if you notice, then you can re-add it. Hence the notification on removal of rementions. This reduces the problem of repeatedly making someone follow/unfollow a page or pages to the same problem as vandalism, which will be dealt with the same way (revert, rebuke, IP bans, etc.)

As an advanced-user feature, we could make it possible to specify which things a user feed returns, so you could just say "look, all I want is user page edits and mentions, I'll follow page feeds myself". Would that work for you?

woodrowbarlow commented 8 years ago

i just struggle to see the value of a remention, and i don't understand the argument that people who don't use a feed reader might want rementions as a method of subscribing to pages... since rementions are still published on an rss feed anyway.

the advantages i see to using rementions rather than just subscribing to a page:

the disadvantages i see are:

people will want to subscribe to their user feeds to get mentions... whether by using an RSS reader or an RSS-to-email service or by just opening the feed in their browser whenever they feel like checking. but if a feed URL can specify multiple sources (as suggested in #7), then they get a feed showing their mentions plus edits to any pages they are interested in. And if they want other people to see what they are subscribed to, they can include that custom link in their user page (either embedding the feed if that is supported or just a plain-text URL that others can browse).

obviously, it's your decision. i'm just offering a second opinion since you tagged me.

woodrowbarlow commented 8 years ago

also, if your wiki software environment is ever used in a scenario with millions of users (i know, it's implausible, but like i said -- i think designing software with an baked-in assumption that the userbase will remain small is a bad idea), imagine how long the list of subscribed users would be on the most popular pages. Thousands of users who are just appending their name onto the page... the list of subscribed users would dwarf the content of the page.

you mentioned "the mentions for a user can be retrieved from a special page.". maybe if you elaborate on that, i'll understand your perceived value of the rementions.

jdpage commented 8 years ago

Summary of out-of-band discussion:

Instead of rementions, a user can edit their page to follow another page. See #23