mirror of
https://github.com/iv-org/invidious.git
synced 2025-07-23 23:00:47 -04:00
fix: prevent censoring of self-harm related search queries (#4403)
* fix: prevent censoring of self-harm related search queries * fix: yt_filters_spec with new flag
This commit is contained in:
parent
1c0b4205d4
commit
c005ada487
2 changed files with 30 additions and 30 deletions
|
@ -300,9 +300,9 @@ module Invidious::Search
|
|||
object["9:varint"] = ((page - 1) * 20).to_i64
|
||||
end
|
||||
|
||||
# If the object is empty, return an empty string,
|
||||
# otherwise encode to protobuf then to base64
|
||||
return "" if object.empty?
|
||||
# Prevent censoring of self harm topics
|
||||
# See https://github.com/iv-org/invidious/issues/4398
|
||||
object["30:varint"] = 1.to_i64
|
||||
|
||||
return object
|
||||
.try { |i| Protodec::Any.cast_json(i) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue