You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see you added the TextFormatter support with 0.1.9 but it won't work with the Mentions extension. When you add a new warning with some mentions in it, you'll end up with a notice as a result of GET request:
Notice: Trying to get property 'mentionsUsers' of non-object in ...\flarum\mentions\src\Listener\FormatUserMentions.php on line 22
Steps to reproduce:
Click "New Warning" button.
Mention someone using @whoever in the comment section.
Refresh the page.
See the notice.
This was the exact reason why I did this trick here in the Diff extension:
Hmm this is something I hadn't considered, thanks for bringing it up! Tbh, I'm not sure that mentions are needed in text formatter? I'll see if it can't be tweaked so that mentions don't evaluate.
Hey @askvortsov1,
I see you added the TextFormatter support with 0.1.9 but it won't work with the Mentions extension. When you add a new warning with some mentions in it, you'll end up with a notice as a result of GET request:
Steps to reproduce:
@whoever
in the comment section.This was the exact reason why I did this trick here in the Diff extension:
https://github.com/the-turk/flarum-diff/blob/8b660cf2e51e19a940fa6cdf33136770b38aa723/src/Listeners/AddDiffRelationship.php#L305-L327
It fixes the issue but I'm not happy with it so I'll be glad if you can find a more clean solution for this.
The text was updated successfully, but these errors were encountered: