Follow Plugin 👨

He is requesting someone to submit a “Pull Request” on Git Hub for this feature

I was referring to Spanish language. My javascript and Ruby are better than my Spanish (which is not a flattering comparison!).

PRs are in any case welcome!

3 Likes

I recently had following issue with this plugin and adding it back resolved the following issue.

However, I now have a new issue, going to the network tab of users who previously had followers or following others, now gives the 404 page. Can I remove all previous data related to this plugin or can you resolve this issue.

1 Like

Disabling this plugin renders user profiles as 404 pages, with the console throwing a 500 error when trying to load https://forum.domain.com/u/user.json

Fulling removing the plugin results in errors as described here: User notifications "all" is empty, but responses, likes, etc have items

I’m also seeing errors like these in the logs:

NoMethodError (undefined method `include?' for nil:NilClass)
/var/www/discourse/plugins/discourse-follow/plugin.rb:74:in `block (2 levels) in activate!'
2 Likes

This plugin was brought up to date with the latest Discourse a day or so ago. You can see it in action here: https://try.thepavilion.io/.

4 Likes

It doesn’t solve the issue yet. I had earlier installed and then I faced issues mentioned here User notifications "all" is empty, but responses, likes, etc have items So I reinstalled and it solved those issues. I had users which earlier had followers and following etc. After reinstalling the plugin the earlier data was still there. But going to the network tab gives a 404 error page. If I intend to completely disable this plugin and remove all associated data, how should I do that so that I don’t face issues? Thanks

3 Likes

I’ll look into your issue, Raj … just bear with me a few days.

4 Likes

OK Raj, to get rid of the Follow plugin fully you need to do the following in a rails console after you’ve removed it and rebuilt:

myFollowNotifications = Notification.where(notification_type: [800,801,802])

myFollowNotifications.each do |notification|
  notification.destroy
end

That should clear out the custom Notifications and should allow the menu to work as normal.

If you wish to continue to use the Plugin after bringing everything up to date, please let me know any further issues you face and I’ll take a look.

I’ve updating my instance and performed a checkout and to me it looks good now.

Please remember, for Pavilion plugins we only provide more guaranteed support for the first 5 days of the month, so please restrict your upgrades to one of those days going forward. If there is a breaking change outside of those days and you update your instance, we may not have the bandwidth to assist in a timely fashion.

4 Likes

It worked! The notifications are now working without any issue.

my forum doesn’t have as many users yet so I think :thinking: I should add this follow functionality a bit later when there’re enough users.

I’ll plan my updates accordingly, I’ll probably add some of other plugins by Pavillion. Thanks a lot :slight_smile:

3 Likes

I’ve just checked Follow to confirm it’s working on current Core, tests-passed.

I noticed that the Following toggle status was broken on the User Card, so have pushed a fix:

Let me know if you are having any issues with this plugin on current tests-passed build.

5 Likes

Hi @merefield,

Will notifications be canceled with the new update

1 Like

No, it’s just a fix. You might be waiting a while.

3 Likes

I just upgraded today and things look good.

Please upgrade before Monday if you intend to do so this month

1 Like

Hey guys…Is there a Spanish version of the plugin? Or how can I translate it?

1 Like

Sorry for slow reply. If you examine the plugin code you can see a Spanish translation is missing from the locales folder. Checkout how English is done and provide the same for Spanish?

1 Like

I’ve just merged a PR provided by a kind member of the community. This provides some additional settings, which in part enhance user privacy:

  • to globally make Following, Followers private to each user if the site admin wishes them to be
  • to globally silence new Follower notifcations:

Thanks so much @buildthomas! :tada: :beers:

4 Likes

I’ve pushed a fix:

4 Likes

Started getting these today:

Message (11 copies reported)

NoMethodError (undefined method `id' for nil:NilClass)
/var/www/discourse/plugins/discourse-follow/plugin.rb:74:in `block (2 levels) in activate!'

Backtrace

/var/www/discourse/plugins/discourse-follow/plugin.rb:74:in `block (2 levels) in activate!'
(eval):44:in `_fast_attributes'
active_model_serializers-0.8.4/lib/active_model/serializer.rb:468:in `rescue in attributes'
active_model_serializers-0.8.4/lib/active_model/serializer.rb:455:in `attributes'
active_model_serializers-0.8.4/lib/active_model/serializer.rb:480:in `_serializable_hash'
active_model_serializers-0.8.4/lib/active_model/serializer.rb:359:in `serializable_hash'
active_model_serializers-0.8.4/lib/active_model/serializer.rb:343:in `as_json'
activesupport-6.0.3.1/lib/active_support/json/encoding.rb:22:in `encode'
activesupport-6.0.3.1/lib/active_support/json/encoding.rb:22:in `encode'
activesupport-6.0.3.1/lib/active_support/core_ext/object/json.rb:42:in `to_json'

Env

HTTP HOSTS: 
2 Likes

Thanks for the report.

Will look at this before next supported upgrade period. (First 5 days of the month)

1 Like

Hello I have a questions when I click follow someone on discourse, what do I get? receiveing notification when they post, it’s mean both question and reple?

and what do you mean by list the lastest topic involving [ex. Like, replie]? And where can I see these list, Could you help to elaborate more?

Thanks!

1 Like