Skip to content

[Sprint/SillySheep](fix): Failing spam detection on staging causing issues when uploading media #1193

Ben requested to merge fix/spam-detection-webm-1193 into master

Closes #1193 (closed)

Summary

Following an update to the spam detection system, videos stopped working because the spam detector was expecting an Entity object rather than the Video that our media POST was passing to it. The same applies to an Image object being passed through.

This caused an issue where-in ->getDescription() could not be found - as Video has the description attribute, I added getters and setters into the Video and Image classes.

Testing

Test various upload types, try posting with and without a red flag failing link (e.g. bit.ly).

Edited by Ben

Merge request reports