Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add bookmarks functionality #330

Open
only-dev-time opened this issue Apr 19, 2024 · 0 comments
Open

add bookmarks functionality #330

only-dev-time opened this issue Apr 19, 2024 · 0 comments

Comments

@only-dev-time
Copy link
Contributor

I would like to suggest a new feature for Hivemind and steemit.com: Bookmarks.

For each post and comment, users can set a bookmark. The functionality is provided by a custom_json operation on the blockchain. This means that other frontends can also process and display the bookmarks.

The operation is structured as follows and is to be processed by hivemind:

Setting the bookmark

{
  "required_auths": [],
  "required_posting_auths": [
    "moecki"
  ],
  "id": "follow",
  "json": "[
    'bookmark', {
      'account': 'moecki',
      'author': 'moecki',
      'permlink': 'moecki-witness-update-february-2024',
      'action': 'add',
      'category':''
    }
  ]"
}

Removing the bookmark

{
  "required_auths": [],
  "required_posting_auths": [
    "moecki"
  ],
  "id": "follow",
  "json": "[
    'bookmark', {
      'account': 'moecki',
      'author': 'moecki',
      'permlink': 'moecki-witness-update-february-2024',
      'action': 'remove',
      'category':''
    }
  ]"
}

A new table hive_bookmarks is required to save the bookmarks. A database migration is therefore necessary.

First thoughts: https://steemit.com/hive-151113/@moecki/what-do-you-think-about-bookmarks-in-steemit
Demo: https://steemit.com/hive-146118/@moecki/bookmarks-fuer-steemit-com-exklusive-einblicke-vor-dem-finale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant