diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2023-01-25 23:47:04 +0100 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2023-01-25 23:47:04 +0100 |
| commit | 2a803dc06709e1791dd3f56a97e838fa1c55de4e (patch) | |
| tree | e56d755c694e3ddb130fd7fc7698ed7215e44b78 /src | |
| parent | 9a9f8231e80aa2a01b41d0f4ab3bab2016c5f99d (diff) | |
| parent | c2957dbce4a76b9a85fde9224b8c18edcb5821ba (diff) | |
| download | invidious-2a803dc06709e1791dd3f56a97e838fa1c55de4e.tar.gz invidious-2a803dc06709e1791dd3f56a97e838fa1c55de4e.tar.bz2 invidious-2a803dc06709e1791dd3f56a97e838fa1c55de4e.zip | |
Fix displaying author name for community posts (#3590)
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/channels/community.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/channels/community.cr b/src/invidious/channels/community.cr index 8e300288..76dff555 100644 --- a/src/invidious/channels/community.cr +++ b/src/invidious/channels/community.cr @@ -69,7 +69,7 @@ def fetch_channel_community(ucid, continuation, locale, format, thin_mode) next if !post content_html = post["contentText"]?.try { |t| parse_content(t) } || "" - author = post["authorText"]?.try &.["simpleText"]? || "" + author = post["authorText"]["runs"]?.try &.[0]?.try &.["text"]? || "" json.object do json.field "author", author |
