Schedule post with SteemPro

in Steem Dev2 months ago (edited)

Hello, SteemPro Enthusiasts

For the past few months, our team has been dedicated to enhancing the post-scheduling feature for SteemPro users. The method underwent multiple rounds of implementation and testing to ensure security and effective management of scheduled posts.

Following the initial implementation and local testing, we encountered errors with certain libraries during deployment in production mode. Despite this setback, we explored alternative use cases and solutions. Fortunately, during this challenging period, @steemchiller provided guidance that enabled us to successfully deploy the updates.

updates.jpg

Let's dive into this feature together to make it simpler for you to spot the code changes. Ready to dive in?

image.png

There are three statuses for scheduled posts:

  • Pending
  • Published
  • Failed

How to schedule post

We have added a post-scheduling button to the SteemPro editor. Users can select the date and time to schedule their posts. The date and time can be modified until the scheduled post status is pending.

Note that if you are scheduling a post for the first time in SteemPro, you will need the private active key session to log in. This is necessary only once to grant posting authority to @steempro.com. Rest assured, it is completely safe as steempro.com will solely enable posting operations on your behalf.

Following the initial scheduling, you can utilize your private posting key. Alternatively, you can manually authorize steempro.com through steemworld. Guidelines for manually adding posting authority are provided below.

image.png

image.png


Open the side drawer and check/manage you scheduled posts

image.png

How to add posting authority (Manually)

https://steemworld.org/account-authorities

image.png

Database

We are using the self hosted MySQL database which save the data of post id, username, title, body, tags, parent_permlink, metadata, options, time, permlink, status, message.

image.png

Security

For security purposes, users must sign a message with their private key and promptly transmit it to the scheduling API. The API efficiently validates the message using the user's posting key, after which the post is added to the scheduling queue.

Signing and verifying messages represent the utmost decentralized and robust method to deter unauthorized entry into database write functions. The API autonomously acquires the username of the logged-in user and promptly furnishes the data for retrieving scheduled posts. Login is imperative for users to access data on scheduled posts.

image.png
https://github.com/faisalamin9696/steempro-next/blob/master/src/app/api/schedules/add/route.ts

GitHub Repository (Public)

https://github.com/faisalamin9696/steempro-next

Experience the future of blogging with SteemPro Blogs today!


Cc:

@steemchiller
@pennsif
@rme
@steemcurator01
@hungry-griffin

image.png

https://www.steempro.com/witnesses


VOTE @faisalamin as witness

🇸‌🇹‌🇪‌🇪‌🇲‌🇵‌🇷‌🇴‌


Posted using SteemPro

Sort:  

Upvoted! Thank you for supporting witness @jswit.

Hello sir
Please why do we now have ads on steempro

It is very bad and makes using the app cumbersome
Please look into this

Coin Marketplace

STEEM 0.16
TRX 0.15
JST 0.028
BTC 56690.25
ETH 2380.35
USDT 1.00
SBD 2.33