You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when creating a media the user can specified it's URI and MimeType. In order to better support media sharing (particularly images) on a wide range of social networks, we should implement media tagging. Thanks to this features, users will be able to tag other users on a particular image to make sure they are someone recognizes when that image is viewed.
Implementation proposal
In order to implement media tagging, the following changes should be made.
Update he PostMedia type
First of all, we need to update the PostMedia type to be:
typePostMediastruct {
URIstring`json:"uri"`MimeTypestring`json:"mime_type"`Tags []sdk.AccAddress`json:"tags"`// Contains the list of all the tagged users
}
Update the CLI and REST commands
Then we need to update the CLI and REST commands to allow tagging. The most particular one will be the CLI one. I think the --media flag can be changed to something like:
Feature description
Currently, when creating a media the user can specified it's
URI
andMimeType
. In order to better support media sharing (particularly images) on a wide range of social networks, we should implement media tagging. Thanks to this features, users will be able to tag other users on a particular image to make sure they are someone recognizes when that image is viewed.Implementation proposal
In order to implement media tagging, the following changes should be made.
Update he PostMedia type
First of all, we need to update the
PostMedia
type to be:Update the CLI and REST commands
Then we need to update the CLI and REST commands to allow tagging. The most particular one will be the CLI one. I think the
--media
flag can be changed to something like:So an example could be
What are your thoughts on this @bragaz @kwunyeung?
The text was updated successfully, but these errors were encountered: