New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added listener to follow after a reply #6
Conversation
Added listener to add setting to a user
{ | ||
$actor = $event->actor; | ||
|
||
if ($actor && $actor->exists && $actor->getPreference('followAfterReply')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected 1 newline after opening brace; 2 found
Referencing: flarum/lang-english#57 |
@@ -17,8 +19,10 @@ app.initializers.add('subscriptions', function() { | |||
addSubscriptionBadge(); | |||
addSubscriptionControls(); | |||
addSubscriptionFilter(); | |||
console.log('subscription'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uh oh ;)
Moved to english keys inside the subscription package
As mentioned in the flarum/framework#310 i updated this to include the changes. But currently i added a toggle button for this setting. I don't know what the best option is to toggle this. Or how to fix the ordering. When i use the example code of @tobscure the buttons are nested inside the div of the Notification grid. Which is not ideal. |
Thanks @petermein! I fixed it up and squash-merged it in. 98276f9 |
Added listener to add setting to a user