Skip to content

Generate web_push_topic from $content (the post title).#431

Open
marclucraft wants to merge 1 commit into
mainfrom
fix/web-push-topic-based-on-content
Open

Generate web_push_topic from $content (the post title).#431
marclucraft wants to merge 1 commit into
mainfrom
fix/web-push-topic-based-on-content

Conversation

@marclucraft

Copy link
Copy Markdown
Contributor

Currently $segment is used.

Each post will now have its own unique topic, so notifications for different posts won't override each other.

Internal ticket

…gment is used.

Each post will now have its own unique topic, so notifications for different posts won't override each other.
'contents' => array('en' => $excerpt),
'included_segments' => array($segment),
'web_push_topic' => str_replace(' ', '-', strtolower($segment)),
'web_push_topic' => str_replace(' ', '-', strtolower($content)),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better to just collapse on postID? What do you think?

@marclucraft

marclucraft commented Jun 28, 2026 via email

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants