Skip to content

Commit

Permalink
Add channel{Name,Handle,Thumbnails} to community posts
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin-Loison committed Apr 6, 2024
1 parent d24a69a commit a5ecbdf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,9 @@ function getCommunityPostFromContent($content)
$post = [
'id' => $id,
'channelId' => $channelId,
'channelName' => $common['authorText']['runs'][0]['text'],
'channelHandle' => substr($common['authorEndpoint']['browseEndpoint']['canonicalBaseUrl'], 1),
'channelThumbnails' => $common['authorThumbnail']['thumbnails'],
'date' => $date,
'contentText' => $contentText,
'likes' => $likes,
Expand Down

0 comments on commit a5ecbdf

Please sign in to comment.