Merge 'Show message when comments are turned off'

From https://github.com/iv-org/invidious/pull/4051
This commit is contained in:
Fijxu
2025-05-09 00:16:07 -04:00
8 changed files with 117 additions and 21 deletions

View File

@@ -196,6 +196,11 @@ struct Video
info["invidiousCompanion"]?.try &.as_h || {} of String => JSON::Any
end
# Returns true if comments are enabled on the video
def comments?
return info["commentsEnabled"].as_bool
end
# Macros defining getters/setters for various types of data
private macro getset_string(name)