שגיאה כאשר אני מנסה להסיר או לשנות תגובה

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 לייקים

אולי זה קשור להסרת ווידג’טים @saquetim

תודה על הדיווח

עד כה לא הצלחתי לשחזר זאת בפוסט אחר

מכיוון שזה 500 משהו יהיה ביומן המטא שיעזור לנו

לייק 1

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 לייקים

מתברר שזו אינטראקציה עם activity pub:


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 הולך לבדוק 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 לייקים

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

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

לייק 1

נושא זה נסגר אוטומטית לאחר 3 ימים. לא ניתן להוסיף תגובות חדשות.

אולי, לא בטוח. פשוט ערכתי את כותרת הנושא הזה פעמיים ולא ראיתי שגיאה.