You are viewing a single comment's thread from:

RE: Write a Steemit Web App: Part 9 - Retrieving Content with getDiscussionsBy*()

in #steemdev7 years ago

Not sure that out of the box API would support your type of query. You'd probably have to use one of the database implementations (blockchain/transactions stored in a searchable database) because you're looking to find matches across the comments from a multitude of posts at a time.

Sort:  

An API call would go to steemit from an external source, but what I'm describing probably cannot be achieved by anything other than steemit server side, essentially something along these lines (and please excuse the faux verbs/functions):

FOR user submitting a comment, return an array of comments,datetimestamp WHERE datediff(now,12H) AND string(exact(comment)), count all perfect matches of current comment, return count, time, string

user, this is the count time you have posted the exact phrase "string" in time, please consider a less generic response, steemians thrive on original content & meaningful contributions, proceeding with this comment may negatively impact your reputation.
POST     EDIT

EG:
copypastamasta, this is the 11th time you have posted the exact phrase "good post, I upvote please upvote me" in 37 minutes, please consider a less generic response, steemians thrive on original content & meaningful contributions, proceeding with this comment may negatively impact your reputation.
POST     EDIT

Not something within your purview, I know, more just a hypothetical item for discussion.

Coin Marketplace

STEEM 0.21
TRX 0.13
JST 0.030
BTC 67538.43
ETH 3518.61
USDT 1.00
SBD 2.81