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.

2개의 좋아요

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의 등록 사용자들이 링크를 클릭하면 "[카테고리]의 [알림 수준]으로 변경하시겠습니까? 예/아니오"와 같은 문구가 표시되는 페이지로 바로 이동하고, 사용자의 답변에 관계없이 해당 카테고리가 표시되도록 하는 링크를 제공하기를 원합니다.

위에서 제안된 대로 서드파티 도구를 사용하는 것이 최선입니까, 아니면 그 사이로 내장 기능이 추가되었나요?

사용 사례: 우리는 특정 카테고리를 가벼운 "관심 그룹"으로 사용합니다. 라이브 웹iná의 끝에 링크를 제공하여 관심 있는 사람들이 클릭하면 관련 카테고리/관심 그룹을 바로 구독할 수 있도록 하고 싶습니다. (현재 대안은 웹iná 중에 화면 공유를 통해 알림 수준을 변경하는 방법을 보여주는 시간을 따로 내야 하는 것이며, 그렇지 않으면 사람들이 중간에 길을 잃곤 합니다.)

1개의 좋아요

참고로 이 기능에 대해 다소 관심이 있습니다. 우리의 사용 사례는 각 메인 카테고리마다 Announcements(공지사항) 하위 카테고리를 두는 것입니다. 이상적으로는 사용자에게 링크만 보내면 되고, 클릭하면 공지사항 하위 카테고리의 알림 설정이 '주시 중(Watching)'으로 변경되기를 바랍니다.

수정: Jeff와 Sam이 공유한 이 스니펫을 찾았습니다. 우리는 이메일 답글 기능을 사용하지 않지만, 사용하는 사람들에게는 이 방법이 하나의 옵션이 될 수 있습니다.

3개의 좋아요

여기서 설명된 사용 사례에 도움이 될 수 있는 이 Theme Component를 작성했습니다. 이 컴포넌트는 카테고리를 관찰(Watching)하는 데 목적이 있지만, 버튼이 사용자로 하여금 해당 주제를 관찰하도록 하도록 확장할 수도 있다고 생각하고 있습니다. 이는 특히 기술 수준이 낮은 사용자(저의 커뮤니티에서 상당한 비중을 차지하는 사용자)를 위해 관찰(Watch) 작업을 더 발견하기 쉽게 만드는 방법입니다.

3개의 좋아요