Change notification level with a link

Hello guys,

  • we already have an integration for blog comments
  • we have the ability to draft links to send templated messages to groups or indviduals

Couldn’t we create a route and a dialog to let people switch their notification level to a suggested value for a given group, tag or category?

Like: https://meta.discourse.org/change-notification?level=watching&category=blog

Use Case

  1. Button on blog: Click here to subscribe to new topics and its comments.
  2. User clicks on link to change the notification level from what-ever to tracking with category = blog posts
  3. Discourse checks if user is logged in and may ask first to register
  4. Discourse asks user to confirm the change of its notification level for the given category/tag/group

I guess there are many other use cases, especially if an existing community changes to Discourse and the responsible admins wants to support everyone to not miss any notification.

The same dialogue could be used to mute notification emails. This is already been solved. Unfortunately, those links only allow to mute, not to un-mute or watch.

6 إعجابات

I think the same thing for topics would be good too. That way, someone who is mentioned in a topic could opt into tracking or watching it, which they can’t do currently, as you point out:

إعجابَين (2)

I see two ways of doing this:

Approach 1

As a route under topics, categories, tags and groups.

So if I wanted to create a link to watch a category:

/c/feature/notify/watch

Or track a topic:

/t/change-notification-level-with-a-link/57784/notify/track

Or set a tag to normal:

/tags/pr-welcome/notify/normal

Or mute a group inbox:

/my/messages/group/admins/notify/mute

Approach 2

Like proposed in the original topic, one route to rule them all.

So if I wanted to watch a category, topic, tag and group inbox all at the same time:

/notify/watch?category=feature&topic=57784&tag=pr-welcome&group=admins

Or if I wanted to track multiple categories at the same time:

/notify/track?category[]=feature&category[]=dev&category[]=ux

Or if I wanted to mute a subcategory:

/notify/mute?category=plugin:broken-plugin

Common to both

Once the user visits the link, they’re asked to confirm they want to change the notification level on the categories/topics/tags/inboxes.

If they’re not logged in they’re prompted to do so, or sign up.


The second approach has its advantages in that you can change the notification level on multiple categories/topics/tags/inboxes at the same time, but I prefer the first approach as it’s more elegant and intuitive.

What are the @team’s thoughts on this?

This is something we want within Mozilla, and we’re willing to invest development resources (i.e. me) to make it happen.

3 إعجابات

“With a link” is a non-starter, it has to be confirmed with an explicit user action like clicking or tapping on a button. Otherwise you could trick people with active cookies on that URL into setting whatever notification level you wanted in a variety of ways.

Oh definitely, I was focused on what routes to use, rather than the whole flow. Edited the post to clarify it’d require explicit action.

إعجابَين (2)

I totally agree with everything that has been said.

Any progress on this feature request? It would allow easy sign up to Discourse powered newsletters based on categories (watch first).

3 إعجابات

I haven’t done any further work on it, so don’t let me stop you from working on it.

Such a feature would be the only missing piece to use a category with default notification watch-first-post as an interactive newsletter that allows subscribers to quote easily and interact with other subscribers in the replies to that newsletter topic.

The only hurdle is the subscription process. Ideally, people would click a link, sign in/register with few clicks and confirm than the notification level change to x for cat/group/tag/topic y with x and y being specified in the link.

To draw even more attention to this feature, I will finish this post with a nice gif.

إعجابَين (2)

Workaround: Use an Discourse API call, e.g. powered by https://stdlib.com/ (free quota).

نعتذر عن إحياء هذا الموضوع القديم، ولكنه أحدث مناقشة تمكنت من العثور عليها.

أنا مهتم بتقديم رابط يأخذ المستخدمين المسجلين في منصة Discourse الخاصة بنا مباشرة إلى صفحة تقول شيئًا مثل “هل أنت متأكد أنك تريد [مستوى الإشعارات] لـ [الفئة]؟ نعم/لا” وبغض النظر عن استجابتهم، سيتم عرض الفئة ذات الصلة لهم.

هل خياري الأفضل هو استخدام أداة طرف ثالث كما هو مقترح أعلاه، أم أصبحت الخيارات المضمنة متاحة في هذه الأثناء؟

حالة الاستخدام: نستخدم فئات معينة كـ “مجموعات اهتمام” خفيفة الوزن. أود أن أكون قادرًا على تقديم رابط في نهاية ندوة عبر الإنترنت مباشرة يسمح للأشخاص المهتمين بالنقر والانتقال لبدء مشاهدة الفئة/مجموعة الاهتمام ذات الصلة. (بديلنا الحالي هو استغراق وقت من الندوة لمشاركة الشاشة حول كيفية تغيير مستوى الإشعارات، وإلا فإن الناس يضيعون في الطريق.)

إعجاب واحد (1)

بالإضافة إلى ذلك، لدينا بعض الاهتمام بهذا. حالة الاستخدام لدينا هي فئة فرعية “إعلانات” لكل فئة رئيسية. من الناحية المثالية، يمكننا فقط إرسال رابط للمستخدمين. بمجرد النقر عليه، فإنه يغير إشعارهم للفئة الفرعية للإعلانات إلى “مراقبة”.

تعديل: وجدت هذه المقتطفات من جيف وسام. نحن لا نستخدم الرد عبر البريد الإلكتروني، ولكن بالنسبة لأولئك الذين يفعلون ذلك، قد يكون هذا خيارًا.

3 إعجابات