Fout bij het verwijderen of wijzigen van een reactie

AI-generated summary

User Moin reported an issue where they couldn’t remove or change a reaction on a specific post, encountering a 500 error. sam suspected it might be related to widgets and suggested checking the meta logs. Moin mentioned they couldn’t reproduce the issue on another post. sam confirmed it was an interaction with ActivityPub. angus suggested the issue might be due to the reactions plugin having different data scenarios for reactions. pmusaraj identified the problem as the activity_pub_object not existing during an undo activity and provided a fix. Moin asked if the issue was similar to a previous one involving the multilanguage plugin. pmusaraj was unsure but couldn’t reproduce the error when editing a title.

I cannot remove my :heart: reaction or choose a different reaction on AI helper does not always use user's locale - #6 by sam

2 likes

Oh, misschien heeft het te maken met het verwijderen van widgets @saquetim

Bedankt voor de melding

Tot nu toe heb ik dit niet kunnen reproduceren op een andere post.

Aangezien het een 500 is, zal er iets in het meta-logboek staan dat ons zal helpen

1 like

The new tag reminded me of 500 error when adding a Language Tag (Multilingual Plugin) to a user's post - #5 by Moin where I had a similar problem when I edited the title

2 likes

Het blijkt dat dit een interactie is met ActivityPub:

plugins/discourse-activity-pub/app/models/concerns/discourse_activity_pub/a_p/model_callbacks.rb:96:in `performing_activity_object'
plugins/discourse-activity-pub/app/models/concerns/discourse_activity_pub/a_p/model_callbacks.rb:19:in `perform_activity_pub_activity'
plugins/discourse-activity-pub/plugin.rb:458:in `block (2 levels) in activate!'
lib/plugin/instance.rb:614:in `block in on'
lib/discourse_event.rb:12:in `block in trigger'
/usr/local/lib/ruby/3.3.0/set.rb:501:in `each_key'
/usr/local/lib/ruby/3.3.0/set.rb:501:in `each'
lib/discourse_event.rb:12:in `trigger'
lib/post_action_destroyer.rb:65:in `perform'
plugins/discourse-reactions/app/services/discourse_reactions/reaction_manager.rb:103:in `remove_shadow_like'
plugins/discourse-reactions/app/services/discourse_reactions/reaction_manager.rb:45:in `toggle_like'
plugins/discourse-reactions/app/services/discourse_reactions/reaction_manager.rb:34:in `block in toggle!'

@pmusaraj gaat ernaar kijken cc @angus

Thanks guys. @pmusaraj what is the actual exception? activity_pub_object doesn’t exist? I have a suspicion that the nub of the issue is the reactions plugin has three different data scenarios for reactions.

This may be the scenario where there’s no PostAction, or it’s created in an unconventional way, hence no AP object where one is expected. If so, AP will need to guard against that.

3 likes

Sorry for my late reply here @angus. Yes, the issue was that the activity_pub_object didn’t exist during an undo activity.

I added a very simple fix in DEV: Fix test failures and an incompatibility with reactions by pmusaraj · Pull Request #234 · discourse/discourse-activity-pub · GitHub , I suspect eventually we’ll want something more robust here. But it should solve the current issue.

1 like

Is it similar here? Is there an attempt to share the new title even though the topic has never been shared?

1 like

Dit onderwerp is automatisch gesloten na 3 dagen. Nieuwe reacties zijn niet meer toegestaan.

Mogelijk, ik weet het niet zeker. Ik heb de titel van dat onderwerp zojuist twee keer bewerkt en geen fout gezien.