NeuromatchAcademy / mastodon

A glitchy but lovable microblogging server
https://glitch-soc.github.io/docs/
GNU Affero General Public License v3.0
7 stars 2 forks source link

[Bugfix] Make filter boosts respect local vs. remote scope #38

Closed sneakers-the-rat closed 10 months ago

sneakers-the-rat commented 10 months ago

Closes: https://github.com/NeuromatchAcademy/mastodon/issues/37 Continues: https://github.com/NeuromatchAcademy/mastodon/pull/36

The first version of filter duplicate boosts forgot to take the max of only local or remote scopes, so if a post had been boosted more recently by a remote account, the most recent local boost wouldn't be seen and vice versa for the federated feed. This fixes that by including those scopes in the correlated subquery.

Caveats:

Other changes

I am not sure why the ruby linting is failing now, but i didn't touch any of those files - we'll sort of linter errors when we merge upstream tomorrow