Commit Graph

84 Commits (606dd11b4f9fb6fc2aaca85e18e6a2d750d5ad6c)

Author SHA1 Message Date
HackerNCoder 606dd11b4f
Remove admin_email. Use repos url for captcha ID and reddit header. Add note about not updating changelog 3 years ago
Andrew Zhao e0d25ff887 Close http clients after using
The crystal http client maintains a keepalive connection to the other
server which stays alive for some time. This should be closed if the
client instance is not used again to avoid hogging resources
3 years ago
saltycrys 2de206cb81 Fix comments
The YouTube headers are now always added for requests to YouTube.
Previously they were only added for requests going through QUIC.

The session token is now JSON decoded to unescape escaped Unicode characters.

The comment continuation protobuf has been updated and the request now goes
through the YouTube `pbj` JSON API.
4 years ago
saltycrys 3dac33ffba
Add backtraces to errors (#1498)
Error handling has been reworked to always go through the new `error_template`,
`error_json` and `error_atom` macros.
They all accept a status code followed by a string message or an exception
object. `error_json` accepts a hash with additional fields as third argument.

If the second argument is an exception a backtrace will be printed, if it is a
string only the string is printed. Since up till now only the exception message
was printed a new `InfoException` class was added for situations where no
backtrace is intended but a string cannot be used.

`error_template` with a string message automatically localizes the message.
Missing error translations have been collected in https://github.com/iv-org/invidious/issues/1497
`error_json` with a string message does not localize the message. This is the
same as previous behavior. If translations are desired for `error_json` they
can be added easily but those error messages have not been collected yet.

Uncaught exceptions previously only printed a generic message ("Looks like
you've found a bug in Invidious. [...]"). They still print that message
but now also include a backtrace.
4 years ago
Omar Roth 452d1e8307
Fix warnings with latest version of Crystal 4 years ago
Omar Roth 1eca969cf6
Add support for polymer redesign 4 years ago
Omar Roth ca1185d0be
Fix warnings in latest version of Crystal 4 years ago
leonklingele 70cbe91776
Migrate to a good Content Security Policy (#1023)
So attacks such as XSS (see [0]) will no longer be of an issue.

[0]: https://github.com/omarroth/invidious/issues/1022
4 years ago
Omar Roth fea6b67067
Remove 'type' attribute from community embed 4 years ago
Omar Roth 9841f74adc
Add handling for comments with no content 4 years ago
Omar Roth b56e493d92
Remove frameborder from community embeds 4 years ago
Omar Roth 2ebfaf76f2
Refactor continuation token handling 5 years ago
Omar Roth 6930570fa2
Add HTTPClient pool 5 years ago
leonklingele 1aefc5b540 Update to Crystal 0.31.0, resolve compiler deprecation warnings, update dependencies (#764)
* shard: update to crystal 0.31.0

Additionally, no longer use the Crystal "markdown" library which has
been removed from the Crystal stdlib in version 0.31.0.
See https://github.com/crystal-lang/crystal/pull/8115.

Also fix some deprecation warnings using the following commands:

    find . \( -type d -name .git -prune \) -o -type f -exec sed -i 's/URI\.escape/URI\.encode_www_form/g' "{}" \;
    find . \( -type d -name .git -prune \) -o -type f -exec sed -i 's/URI\.unescape/URI\.decode_www_form/g' "{}" \;
    sed -i 's/while \%pull\.kind \!\= \:end_object/until \%pull\.kind\.end_object\?/g' src/invidious/helpers/patch_mapping.cr
5 years ago
Omar Roth 7b53b6bfef
Shrink continuation cursor for YouTube comments 5 years ago
Omar Roth f18d8229c0
Refactor continuation protocol buffers 5 years ago
Omar Roth 290c7e6009
Disable autoplay in community tabs 5 years ago
Omar Roth bcd239ac2b
Add community page 5 years ago
Omar Roth 196ee1aa8b
Add '/api/v1/channels/comments' 5 years ago
Omar Roth 6efa6691b1
Clean up comment templating 5 years ago
Omar Roth c47f1ae236
Add Reddit comment permalink 5 years ago
Omar Roth aac240fe41
Resize comment thumbnails 5 years ago
Omar Roth e30d70b6d4
Refactor proxy_list into global 5 years ago
Omar Roth ca79e81b39
Fix simpleText in comments extractor 5 years ago
Omar Roth a9e86cecf5
Fix comment extractor 5 years ago
Omar Roth 38600b3347
Update list of domains for pulling Reddit comments 5 years ago
Omar Roth b43e9ed7e7
Refactor 'description_html' 5 years ago
Omar Roth 8c944815bc
Minor refactor 5 years ago
Omar Roth 1a9360ca75
Minor formatting changes 5 years ago
Allan Nordhøy aa10a9d899 Language fixes (#366)
* Language fixes
5 years ago
Omar Roth 80c1ebd768 Support 'sort_by' in reddit /api/v1/comments 5 years ago
Omar Roth 611555514c Remove unnecessary XML declaration 5 years ago
Omar Roth 5ef288b840 Add 'sort_by' to /api/v1/comments 5 years ago
Omar Roth 1b78001201 Use struct for allocations 5 years ago
Omar Roth 7a0f0ca5ce Fix thin mode 5 years ago
Omar Roth 0c6cede287 Format files and trim trailing whitespace 5 years ago
Omar Roth 057e69fe70 Update User-Agent and statistics schema 5 years ago
Omar Roth 2847c34f58 Bump version 5 years ago
Omar Roth 83493237a5 Add support for translating time intervals 5 years ago
Agustin Ferrari b04a2d4f61 Just a couple of adjustments (#350)
* Added icons tooltips in local/en-US.json, corrected link tooltip to switch to video mode and changed heart symbol by icon in comments
5 years ago
Omar Roth d625d0ffbd Use get_video for pulling comment token 5 years ago
Omar Roth 1dcfa90c8e Update version and bump changelog 5 years ago
Omar Roth c1ed660ca0 Proxy creator thumbnail for heart container 5 years ago
Agustin Ferrari b0ba670c91 Comments now show if they were edited and if they received a heart from the uploader (plus additional classes in default.css). The isEdited attribute was also added in the comments API and new strings in en-US.json 5 years ago
Agustin Ferrari e9ea365f2f Add additional parameters in the API comments, highlight the user name in the uploader comments and I finished permalink of the comments. 5 years ago
Agustin Ferrari 55118a6768 Change color to the links and add a couple of improvements in the comments 5 years ago
Omar Roth 95bde7bb8a Add handling for empty continuation 5 years ago
Omar Roth daa2329f8b Add fix for pulling comments from age-gated videos 5 years ago
Omar Roth b23710f89f Fix comments without startTimeSeconds 5 years ago
Omar Roth 2425368c3a Bump version 5 years ago