Giter Site home page Giter Site logo

aaroncox / chainbb Goto Github PK

View Code? Open in Web Editor NEW
52.0 12.0 38.0 772 KB

chainBB backend services and api

Home Page: https://chainbb.com

License: MIT License

Python 99.69% Shell 0.31%
blockchain forums react python docker mongodb steem steem-blockchain

chainbb's People

Contributors

aaroncox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chainbb's Issues

Forum subscription custom_json op

Forum subscriptions need to be moved on chain much like how follows work. This will allow indexing of a user's forum subscriptions in the DB and no longer depend on local storage.

Ignore users

It would be nice if we could ignore users in chainBB, so that their posts/comments are automatically removed/hidden.

Create own forum

I think this option should be ;)

When you are on the main page of ChainBB You have subforums like "community", "crypto", etc. I would like to make my own subforums such as "Linux", "Windows", etc. with their own tags - that is to make their own forum.

The best option would eventually appear on ChainBB.
For example, you go to chainbb.com/forum/pingwineknet (or something) and you have a list of subforums that you have set up, etc.

When a post is edited, it rolls back the "last updated"

In a situation where a user edits an older post, it causes the "last updated" and "last replied" portions of the indexes back to when that post was created, even though newer posts may exist.

This creates weird sorting situations.

Indexes shouldn't be updated upon editing.

Moderation Feature: moving posts

Allow mods/owners of forums to:

  • Move a post out of a forum they have rights to (delete from forums index).
  • Move a post into a forum they have rights to (add to forums index).
  • Move a post between any two forums they have rights to (a combo add + delete op).

A message could potentially be posted whenever these operations took place by a specific bot account. These bot messages would be injected with a special display showing moderation actions within the thread at the appropriate place in the timeline.

User generated forum indexes

Allow users to define forum indexes via custom blockchain operations.

Using standard create/update/delete operations, the chainBB engine will process these changes to maintain indexes based on the state of each custom op chain. More documentation is in the works.

Unknown keys when trying to create a reply

An error has occured.

If you need assistance, please notify @jesta here on the forums, on steemit.com, or via steemit.chat. Please include the error message shown below.

13 N5boost16exception_detail10clone_implINS0_19error_info_injectorISt12out_of_rangeEEEE: unknown key
unknown key: 
    {"author":"jesta","permlink":"re-re-rycharde-can-we-add-mathematics-as-a-new-top-level-forum-on-chainbb-201767t133518765z-20170608t040650","what":"unknown key"}
    th_a  database.cpp:360 get_comment

    {"o":{"parent_author":"jesta","parent_permlink":"re-re-rycharde-can-we-add-mathematics-as-a-new-top-level-forum-on-chainbb-201767t133518765z-20170608t040650","author":"rycharde","permlink":"re-jesta-re-re-rycharde-can-we-add-mathematics-as-a-new-top-level-forum-on-chainbb-201767t133518765z-20170608t040650-201768t152960z","title":"","body":"Brilliant, thanks!\n\nDo you have an overall plan for sub-forums and sub-sub-forums, specifically in Education, but also in general?\n\nA sub-forum may warrant a special tag eg EduMathematics, and a sub-sub-forum, say, EduSecondaryPhysics.\nI read that only one hyphen can be added in a tag.\nThe reason for such long tags is that it is very easy to get 5 levels deep in sub-forums and then the poster has zero personal tags left - although perhaps not inherently a bad thing.\nYou may have a better idea for this.","json_metadata":"{\"app\":\"chainbb/0.1\",\"format\":\"markdown+html\",\"tags\":[]}"}}
    th_a  steem_evaluator.cpp:680 do_apply

    {"op":["comment",{"parent_author":"jesta","parent_permlink":"re-re-rycharde-can-we-add-mathematics-as-a-new-top-level-forum-on-chainbb-201767t133518765z-20170608t040650","author":"rycharde","permlink":"re-jesta-re-re-rycharde-can-we-add-mathematics-as-a-new-top-level-forum-on-chainbb-201767t133518765z-20170608t040650-201768t152960z","title":"","body":"Brilliant, thanks!\n\nDo you have an overall plan for sub-forums and sub-sub-forums, specifically in Education, but also in general?\n\nA sub-forum may warrant a special tag eg EduMathematics, and a sub-sub-forum, say, EduSecondaryPhysics.\nI read that only one hyphen can be added in a tag.\nThe reason for such long tags is that it is very easy to get 5 levels deep in sub-forums and then the poster has zero personal tags left - although perhaps not inherently a bad thing.\nYou may have a better idea for this.","json_metadata":"{\"app\":\"chainbb/0.1\",\"format\":\"markdown+html\",\"tags\":[]}"}]}
    th_a  database.cpp:2810 _apply_transaction

    {"trx":{"ref_block_num":52929,"ref_block_prefix":2928916012,"expiration":"2017-06-08T08:29:27","operations":[["comment",{"parent_author":"jesta","parent_permlink":"re-re-rycharde-can-we-add-mathematics-as-a-new-top-level-forum-on-chainbb-201767t133518765z-20170608t040650","author":"rycharde","permlink":"re-jesta-re-re-rycharde-can-we-add-mathematics-as-a-new-top-level-forum-on-chainbb-201767t133518765z-20170608t040650-201768t152960z","title":"","body":"Brilliant, thanks!\n\nDo you have an overall plan for sub-forums and sub-sub-forums, specifically in Education, but also in general?\n\nA sub-forum may warrant a special tag eg EduMathematics, and a sub-sub-forum, say, EduSecondaryPhysics.\nI read that only one hyphen can be added in a tag.\nThe reason for such long tags is that it is very easy to get 5 levels deep in sub-forums and then the poster has zero personal tags left - although perhaps not inherently a bad thing.\nYou may have a better idea for this.","json_metadata":"{\"app\":\"chainbb/0.1\",\"format\":\"markdown+html\",\"tags\":[]}"}],["comment_options",{"author":"rycharde","permlink":"re-jesta-re-re-rycharde-can-we-add-mathematics-as-a-new-top-level-forum-on-chainbb-201767t133518765z-20170608t040650-201768t152960z","max_accepted_payout":"1000000.000 SBD","percent_steem_dollars":10000,"allow_votes":true,"allow_curation_rewards":true,"extensions":[[0,{"beneficiaries":[{"account":"chainbb","weight":1500}]}]]}]],"extensions":[],"signatures":["1f7195e04903a18f176cebba0ac40154395cf9d56e739fb17ad6924fed09a46a7624a9f07a62c170b346c060c24cb25ab331137166bdfe1181b16d5fa13467c23c"]}}
    th_a  database.cpp:2814 _apply_transaction

    {"trx":{"ref_block_num":52929,"ref_block_prefix":2928916012,"expiration":"2017-06-08T08:29:27","operations":[["comment",{"parent_author":"jesta","parent_permlink":"re-re-rycharde-can-we-add-mathematics-as-a-new-top-level-forum-on-chainbb-201767t133518765z-20170608t040650","author":"rycharde","permlink":"re-jesta-re-re-rycharde-can-we-add-mathematics-as-a-new-top-level-forum-on-chainbb-201767t133518765z-20170608t040650-201768t152960z","title":"","body":"Brilliant, thanks!\n\nDo you have an overall plan for sub-forums and sub-sub-forums, specifically in Education, but also in general?\n\nA sub-forum may warrant a special tag eg EduMathematics, and a sub-sub-forum, say, EduSecondaryPhysics.\nI read that only one hyphen can be added in a tag.\nThe reason for such long tags is that it is very easy to get 5 levels deep in sub-forums and then the poster has zero personal tags left - although perhaps not inherently a bad thing.\nYou may have a better idea for this.","json_metadata":"{\"app\":\"chainbb/0.1\",\"format\":\"markdown+html\",\"tags\":[]}"}],["comment_options",{"author":"rycharde","permlink":"re-jesta-re-re-rycharde-can-we-add-mathematics-as-a-new-top-level-forum-on-chainbb-201767t133518765z-20170608t040650-201768t152960z","max_accepted_payout":"1000000.000 SBD","percent_steem_dollars":10000,"allow_votes":true,"allow_curation_rewards":true,"extensions":[[0,{"beneficiaries":[{"account":"chainbb","weight":1500}]}]]}]],"extensions":[],"signatures":["1f7195e04903a18f176cebba0ac40154395cf9d56e739fb17ad6924fed09a46a7624a9f07a62c170b346c060c24cb25ab331137166bdfe1181b16d5fa13467c23c"]}}
    th_a  database.cpp:617 push_transaction

    {"call.method":"call","call.params":[3,"broadcast_transaction_with_callback",[null,{"ref_block_num":52929,"ref_block_prefix":2928916012,"expiration":"2017-06-08T08:29:27","operations":[["comment",{"parent_author":"jesta","parent_permlink":"re-re-rycharde-can-we-add-mathematics-as-a-new-top-level-forum-on-chainbb-201767t133518765z-20170608t040650","author":"rycharde","permlink":"re-jesta-re-re-rycharde-can-we-add-mathematics-as-a-new-top-level-forum-on-chainbb-201767t133518765z-20170608t040650-201768t152960z","title":"","body":"Brilliant, thanks!\n\nDo you have an overall plan for sub-forums and sub-sub-forums, specifically in Education, but also in general?\n\nA sub-forum may warrant a special tag eg EduMathematics, and a sub-sub-forum, say, EduSecondaryPhysics.\nI read that only one hyphen can be added in a tag.\nThe reason for such long tags is that it is very easy to get 5 levels deep in sub-forums and then the poster has zero personal tags left - although perhaps not inherently a bad thing.\nYou may have a better idea for this.","json_metadata":"{\"app\":\"chainbb/0.1\",\"format\":\"markdown+html\",\"tags\":[]}"}],["comment_options",{"author":"rycharde","permlink":"re-jesta-re-re-rycharde-can-we-add-mathematics-as-a-new-top-level-forum-on-chainbb-201767t133518765z-20170608t040650-201768t152960z","max_accepted_payout":"1000000.000 SBD","percent_steem_dollars":10000,"allow_votes":true,"allow_curation_rewards":true,"extensions":[[0,{"beneficiaries":[{"account":"chainbb","weight":1500}]}]]}]],"extensions":[],"signatures":["1f7195e04903a18f176cebba0ac40154395cf9d56e739fb17ad6924fed09a46a7624a9f07a62c170b346c060c24cb25ab331137166bdfe1181b16d5fa13467c23c"]}]]}
    th_a  websocket_api.cpp:124 on_message (see err.payload for the full error payload)

Comments ocupy too much screen space: Request for a more compact layout

Hello,

As it is, I find that each post/comment occupies way too much horizontal space. I find that the site would look much better if the comments were more compacted.

The following part of each comment should be changed into a more compact version, without loss of information.

chainbb

I suggest hiding the "via X" information and put the "Vote" and "Reply" in the horizontal line.

Posting reward beneficiaries not converting to integers before OP.

Error:
transaction.operations = comment,[object Object],comment_options,[object Object] cause: comment_options.extensions = 0,[object Object] cause: 0.beneficiaries = [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object] cause: beneficiaries.weight = 254.99999999999997 cause: Illegal value: 254.99999999999997 (not an integer)

Reproduction:
Split the rewards on a non integer.

Suggested fix:

Before transaction OP is fired round to the nearest whole number.

Cheers Jesta :)

Rework linking/canonical logic based on app/canonical tag

Canonical Links: Add canonical links to posts based on the app tag or json_metadata. For reference, the discussion in steemit/condenser#336 is the basis of these changes.

User Preference: Default link behavior. Let the user toggle between options that modify links to Steem blockchain content. Options including:

  • Option A: Prevent any modification of links and use whatever the author created the links as.
  • Option B: Change all links based to whatever platform it was created on (via the app tag). e.g steemit.com links added to a Busy.org post would be rewritten to Busy.org.
  • Option C: Forcing all links to chainBB. Any other frontends domain in the URL will be overwritten allowing the user to always remain on chainBB.

The user preference will not modify the canonical URL generated by chainBB.

Integrate dtube app posts as a custom view

Create a view that renders posts for videos when it detects a post from dtube.


Example post:

https://steemdb.com/dtube/@cryptoiskey/s46zu0bj/data

Example data:

{
    "links": [
        "https:\/\/dtube.video\/v\/cryptoiskey\/s46zu0bj",
        "https:\/\/youtu.be\/y9IUTiF9YvY",
        "https:\/\/www.youtube.com\/c\/CryptoisKey\/"
    ],
    "image": [
        "https:\/\/ipfs.io\/ipfs\/QmZMD1z7SXrxSvachpmXMwvs9Yo1tySuqeyZKXSnW2TG76",
        "https:\/\/steemitimages.com\/DQmd6MMWUVd5hjkXL5sjr8peTv9vtyiqv6fBpVFPDEkHTcZ\/cik-siggy.png"
    ],
    "tags": [
        "dtube",
        "dtube-steemit",
        "dtube-steem",
        "dtube-video",
        "dtube-blockchain"
    ],
    "video": {
        "_id": "99651877260d5452ba5550e342e2f146",
        "content": {
            "tags": [
                "dtube",
                "dtube-steemit",
                "dtube-steem",
                "dtube-video",
                "dtube-blockchain"
            ],
            "videohash": "Qme9EEcpBoZGet2H7mQVuvba9a2VhvUoDBrv5tr9f1CiA9",
            "description": "![MAIN-THUMB-POST.jpg](https:\/\/steemitimages.com\/DQmcaN5AvAEAWBFUFzfErT9sXCHJ1g6KUqujbdCZXNpvfPN\/MAIN-THUMB-POST.jpg)\n\nI wanted to make a very basic video that shows users on youtube how simple Steemit can be.\n\n I don't get into the technicals I merley show an overview and explain some very important features and user case scenarios.\n\nI think the more videos we make for Steemit the better, and it is important to keep in mind there are now more and more humans discovering the Blockchain on a faster larger scale. \n\nWe must get virally busy and inject steemit to the masses via any social media outlet we can take advantage of.\n\nI have posted this on Youtube to hopefully help seek out some new potential steemians\n\n**The market is now over 130 Billion. Mass adoption is imminent.**\n\n<\/a>"
        },
        "info": {
            "author": "cryptoiskey",
            "permlink": "s46zu0bj",
            "snaphash": "QmZMD1z7SXrxSvachpmXMwvs9Yo1tySuqeyZKXSnW2TG76",
            "title": "Steemit-Basic Overview for the Masses"
        }
    },
    "format": "markdown",
    "app": "steemit\/0.1"
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.