Skip to content

[Bug] Channels API returns 0 in joined and totalViews keys. #4430

Description

@Fijxu

Describe the bug

When doing a request for any channel to the channels API (/api/v1/channels/<channelID>) the values of the keys joined and totalViews return 0 when they should return the date of the creation date of the channel and the total view count of the channel.

Steps to Reproduce

  1. Do a request for any channel on any instance, for example, the MrBeast channel: https://inv.nadeko.net/api/v1/channels/UCX6OQ3DkcsbYNE6H8uQQuVA | https://invidious.nerdvpn.de/api/v1/channels/UCX6OQ3DkcsbYNE6H8uQQuVA | https://invidious.fdn.fr/api/v1/channels/UCX6OQ3DkcsbYNE6H8uQQuVA
  2. Search for the joined key

Screenshots

image

Additional context
This affects FreeTube details section in the about tab of the requested channel. It is supposed to return the Views and Joined details (as can be seen here: #4294 (comment) . I could be wrong)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions