diff options
| author | TheFrenchGhosty <47571719+TheFrenchGhosty@users.noreply.github.com> | 2021-01-08 13:02:03 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-08 13:02:03 +0000 |
| commit | ba148d749f3f3b745704c35bde2f72ea194b1ddb (patch) | |
| tree | 92285de5250989637e805ea61dd046166fc24475 /src | |
| parent | e254d2de8ed9e895b27a6d93f2f67ee1544ad037 (diff) | |
| parent | 606dd11b4f9fb6fc2aaca85e18e6a2d750d5ad6c (diff) | |
| download | invidious-ba148d749f3f3b745704c35bde2f72ea194b1ddb.tar.gz invidious-ba148d749f3f3b745704c35bde2f72ea194b1ddb.tar.bz2 invidious-ba148d749f3f3b745704c35bde2f72ea194b1ddb.zip | |
Merge pull request #1647 from hackerncoder/removeOmarrothMentions
Remove omarroth mentions
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/comments.cr | 2 | ||||
| -rw-r--r-- | src/invidious/helpers/helpers.cr | 1 | ||||
| -rw-r--r-- | src/invidious/users.cr | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/src/invidious/comments.cr b/src/invidious/comments.cr index 8849c87f..0ac99ba5 100644 --- a/src/invidious/comments.cr +++ b/src/invidious/comments.cr @@ -242,7 +242,7 @@ end def fetch_reddit_comments(id, sort_by = "confidence") client = make_client(REDDIT_URL) - headers = HTTP::Headers{"User-Agent" => "web:invidious:v#{CURRENT_VERSION} (by /u/omarroth)"} + headers = HTTP::Headers{"User-Agent" => "web:invidious:v#{CURRENT_VERSION} (by github.com/iv-org/invidious)"} # TODO: Use something like #479 for a static list of instances to use here query = "(url:3D#{id}%20OR%20url:#{id})%20(site:invidio.us%20OR%20site:youtube.com%20OR%20site:youtu.be)" diff --git a/src/invidious/helpers/helpers.cr b/src/invidious/helpers/helpers.cr index e41f8317..1f56ec92 100644 --- a/src/invidious/helpers/helpers.cr +++ b/src/invidious/helpers/helpers.cr @@ -95,7 +95,6 @@ class Config property port : Int32 = 3000 # Port to listen for connections (overrided by command line argument) property host_binding : String = "0.0.0.0" # Host to bind (overrided by command line argument) property pool_size : Int32 = 100 # Pool size for HTTP requests to youtube.com and ytimg.com (each domain has a separate pool of `pool_size`) - property admin_email : String = "omarroth@protonmail.com" # Email for bug reports @[YAML::Field(converter: Preferences::StringToCookies)] property cookies : HTTP::Cookies = HTTP::Cookies.new # Saved cookies in "name1=value1; name2=value2..." format diff --git a/src/invidious/users.cr b/src/invidious/users.cr index 6bc2acd2..153e3b6a 100644 --- a/src/invidious/users.cr +++ b/src/invidious/users.cr @@ -427,7 +427,7 @@ def generate_captcha(key, db) end def generate_text_captcha(key, db) - response = make_client(TEXTCAPTCHA_URL, &.get("/omarroth@protonmail.com.json").body) + response = make_client(TEXTCAPTCHA_URL, &.get("/github.com/iv.org/invidious.json").body) response = JSON.parse(response) tokens = response["a"].as_a.map do |answer| |
