Glasnost v0.7 released: now with title and post creation date filters - publish your Steem blogs on your own domain

in #steemdev7 years ago (edited)


Glasnost will automatically synchronize and filter posts from any number of your Steem accounts. This release adds new advanced post filtering settings: regular expression title filters and created date filters.

Configuration example

{
  "authors": [{
    "account_name": "ontofractal",
    "filters": {
      "tags": {
        "blacklist": ["stats"],
        "whitelist": ["open-source", "glasnost"]
      },
      "title": {
        "blacklist": [],
        "whitelist": ["elixir"]
      },
      "created": {
        "only_after": "2017-01-01",
        "only_before": ""
      }
    }
  }],
  "about_blog_permlink": "ann-introducing-glasnost-alpha-open-source-blog-and-app-server-for-steem-golos-blockchains",
  "about_blog_author": "ontofractal",
  "source_blockchain": "steem"
}

Use authors property to select Steem account names.

Possible values for:

  • "source_blockchain": steem or golos
  • "about_blog_author": post author steem or golos
  • "about_blog_permlink": post permlink on steem or golos

Other settings like PORT, STEEM_URL and GOLOS_URL can be configured in the Dockerfile.

Whitelist/blacklist rules

Whitelisting for tags and titles are applied first: all posts that do not match whitelisting rules are discarded. If whitelist is empty, it is ignored. Blacklist rules are applied next: all posts that match any of the blacklist rules are discarded.

Filters are applied in the following order:

  1. Tags
  2. Titles
  3. Created date

Tag filters: strings in whitelist and blacklist arrays should be usual strings.

Created date filters: empty values "" of only_after и only_before keys are ignored. Date format should use ISO 8601 standard and contain only the date part (no time or offset).

Title filters: strings in whitelist and blacklist arrays should be valid regular expressions without /.

Changelog

  • new posts filter by title using regexes
  • new posts filter by created date
  • fixed a bug that displayed a wrong current active page in the page navigation
  • various improvements and minor fixes

Glasnost alpha v0.7 demo for @ontofractal

Glasnost repo

Glasnost latest on Docker hub

Tech stack

  • Elixir
  • Phoenix
  • Mnesia

All data is stored by in-memory Mnesia database that is a part of Erlang/OTP platform.

What's Glasnost? and Glasnost Roadmap

Read more about Glasnost and its roadmap in the introduction post

Development process

Glasnost is a single code base developed simultaneously both for Steem and Golos blockchains. Sustainable Glasnost development is made possible by the committed support of Golos open source ecosystem by @cyberfund. Read more about Golos and cyberfund open source support in this post by @hipster.

Feedback

If you have any requests or feedback, please get in touch with me: ontofractal at protonmail.com or steemit.chat.

(ノ◕ヮ◕)ノ*:・゚✧

Sort:  

Awesome! keep it up!

(ノ◕ヮ◕)ノ*:・゚✧

Nice info ! :)

Hi, can you share some guidelines as to how to install Glasnost on one of these docker hosting services ( for example, AWS )?

This looks great! What are the system requirements like? Would I be able to run this on 1 CPU and 1GB RAM?

This is what i got when try to start docker image
Error: https://pastebin.com/GvgYR4Wm

Coin Marketplace

STEEM 0.31
TRX 0.12
JST 0.033
BTC 64341.19
ETH 3145.13
USDT 1.00
SBD 4.00