OZtree
OZtree copied to clipboard
Search code looks at sponsorship text but not verified sponsorship text
So it brings up sponsored leaves based on the text entered by users even if that text is not live on the tree. It should only be for live leaves and should use the verified text only.
For example, someone put text about "Donald Trump" into sponsorship that has not yet been verified, and we get this on when searching for that on the main page:
This is an issue because if someone puts in an obnoxious name or sponsors a dodgy species that should have been banned it will be highlighted in search before the data entered has been vetted
This was mostly solved by throwing away code. But I've added a bunch more tests whilst looking at this.
Perfect, thanks. That's the ideal solution: increases the test:code ratio both ways