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
Yep, it looks to me like transform() is getting called twice on one message, but an initial skim of the code didn't make it obvious why this is happening.
Problem: Messages are being fetched with `post.get()`, which runs the
`transform()` function to decorate them with Markdown/etc, but then
they're being passed through `transform()` a second time at the end of
the function. This is inefficient and applies side-effects (like adding
channels to the post) twice.
Solution: Remove the final `transform()` so that these posts are only
decorated once.
Fixes: fraction#358
What's the problem you want solved?
Posts posted in a channel (and not just with the channel mentioned) get that channel rendered twice in at least the popular view, like this
(in some cases people both post in a channel, and tag the channel at the end of the post, but in that case it would look like it's rendered 3 times!)
Is there a solution you'd like to recommend?
I'm guessing it's a bug, so fix it :P Note, this is unrelated to #290
The text was updated successfully, but these errors were encountered: