You are viewing a single comment's thread from:
RE: Write a Steemit Web App: Part 9 - Retrieving Content with getDiscussionsBy*()
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.
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 ofcomments
,datetimestamp
WHEREdatediff(now,12H)
ANDstring(exact(comment))
, count all perfect matches of current comment, returncount, time, string
user
, this is thecount
time you have posted the exact phrase "string
" intime
, 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.