WIP: feat: Missing notification when another user comments on a post the user commented on #163
@@ -12,6 +12,7 @@ NOTIFICATION_TYPES = [
|
|||||||
{"key": "vote", "label": "Upvotes", "description": "Someone ++'d your content"},
|
{"key": "vote", "label": "Upvotes", "description": "Someone ++'d your content"},
|
||||||
{"key": "follow", "label": "Followers", "description": "Someone starts following you"},
|
{"key": "follow", "label": "Followers", "description": "Someone starts following you"},
|
||||||
{"key": "message", "label": "Direct messages", "description": "Someone sends you a message"},
|
{"key": "message", "label": "Direct messages", "description": "Someone sends you a message"},
|
||||||
|
{"key": "participation", "label": "Post participation", "description": "Someone else comments on a post you also commented on"},
|
||||||
{"key": "badge", "label": "Badges", "description": "You earn a badge"},
|
{"key": "badge", "label": "Badges", "description": "You earn a badge"},
|
||||||
{"key": "level", "label": "Level-ups", "description": "You reach a new level"},
|
{"key": "level", "label": "Level-ups", "description": "You reach a new level"},
|
||||||
{"key": "issue", "label": "Issue tracker", "description": "Updates on issue reports you filed"},
|
{"key": "issue", "label": "Issue tracker", "description": "Updates on issue reports you filed"},
|
||||||
@@ -200,3 +201,4 @@ def mark_notifications_read_by_target(user_uid: str, target_url: str) -> int:
|
|||||||
|
|
||||||
clear_unread_cache(user_uid)
|
clear_unread_cache(user_uid)
|
||||||
return len(ids)
|
return len(ids)
|
||||||
|
|
||||||
|
|||||||
@@ -428,7 +428,7 @@ four ways to sign requests.
|
|||||||
method="POST",
|
method="POST",
|
||||||
path="/profile/{username}/notifications",
|
path="/profile/{username}/notifications",
|
||||||
title="Toggle a notification preference",
|
title="Toggle a notification preference",
|
||||||
summary="Enable or disable one notification type on one channel (in-app or push). Admins may target any user. Types: comment, reply, mention, vote, follow, message, badge, level, issue, reminder, harvest_stolen.",
|
summary="Enable or disable one notification type on one channel (in-app or push). Admins may target any user. Types: comment, reply, mention, vote, follow, message, participation, badge, level, issue, reminder, harvest_stolen.",
|
||||||
auth="user",
|
auth="user",
|
||||||
encoding="form",
|
encoding="form",
|
||||||
destructive=True,
|
destructive=True,
|
||||||
@@ -447,7 +447,7 @@ four ways to sign requests.
|
|||||||
"string",
|
"string",
|
||||||
True,
|
True,
|
||||||
"vote",
|
"vote",
|
||||||
"One of: comment, reply, mention, vote, follow, message, badge, level, issue, reminder, harvest_stolen.",
|
"One of: comment, reply, mention, vote, follow, message, participation, badge, level, issue, reminder, harvest_stolen.",
|
||||||
),
|
),
|
||||||
field(
|
field(
|
||||||
"channel",
|
"channel",
|
||||||
@@ -795,5 +795,5 @@ four ways to sign requests.
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user