mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-02-11 00:14:42 +00:00
Merge 'Show message when comments are turned off'
From https://github.com/iv-org/invidious/pull/4051
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user