HelloZeroNet / HelloZeroNet/ZeroNet

Media objects in newsfeed

Open
#1,174 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
18.8k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

Some blogs are art-centric and have posts with no text at all, sometimes even without titles, so it's hard to get them into newsfeed. Also all popular sites such as facebook and twitter have media objects in newsfeed, and it's pretty.
I propose two new fields in the [`feedFollow`](https://zeronet.readthedocs.io/en/latest/site_development/zeroframe_api_reference/#plugin-newsfeed) command:

- `media_url`: url of the media object
- `media_type`: one of `{'image', 'video', 'audio'}`

I think one media object per record would be enough. If user is interested, he can follow the link to view all content.
Please, share your thoughts.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the feedFollow command in the linked ZeroFrame API reference and trace its implementation and existing tests. Determine where feed records are assembled and how media URLs and types would be represented; the work is done when the API behavior and coverage clearly support the proposed media fields.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.