尝试删除或更改反应时出错

我无法在 AI helper does not always use user's locale - #6 by sam 删除我的 :heart: 表情符号或选择其他表情符号。

2 个赞

也许这与移除小部件有关 @saquetim

感谢您的报告

到目前为止,我无法在另一篇文章中重现此问题

由于这是一个 500,元日志中将包含一些有用的信息

1 个赞

新标签让我想起了 500 error when adding a Language Tag (Multilingual Plugin) to a user's post - #5 by Moin

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 将会查看,抄送 @angus

谢谢大家。@pmusaraj 实际的异常是什么?activity_pub_object 不存在吗?我怀疑问题的核心是 reactions 插件有三种不同的 reaction 数据场景。

这可能是没有 PostAction 的情况,或者它是以一种非传统的方式创建的,因此在预期位置没有 AP 对象。如果是这样,AP 需要防范这种情况。

3 个赞

抱歉回复晚了 @angus。是的,问题在于 undo 活动期间 activity_pub_object 不存在。

我在 DEV: Fix test failures and an incompatibility with reactions by pmusaraj · Pull Request #234 · discourse/discourse-activity-pub · GitHub 中添加了一个非常简单的修复程序,我怀疑最终我们想要在这里实现更健壮的功能。但这应该能解决当前的问题。

1 个赞

这里也类似吗?是否有人尝试分享新标题,即使该主题从未被分享过?

1 个赞

此主题已在 3 天后自动关闭。不再允许回复。

也许,不确定。我刚刚编辑了该主题的标题两次,没有看到错误。