m_get_report_post
Function
Function Name | Description | Level |
m_get_report_post | Returns a list of user reported posts. This function will only invoked if get_config returns "m_report = 1" | |
Input Parameters:
Name | Type | Required? | Description | Level |
start_num | Int | yes | For pagination. If start_num = 0 & last_num = 9, it returns first 10 items, sorted by date (last-in-first-out). If both are not presented, return first 20 items. if start_num = 0 and last_num = 0, return the first item only. If last_num smaller than start_num returns error code "Out-of-range" (see error code column). If last_num - start_num > 50, returns only first 50 items starting from start_num. | |
last_num | Int | yes | See above. | |
Output Parameters:
Name | Type | Required? | Description | Level |
total_report_num | Int | yes | Total number of reported posts. | |
reports | Array of Hash table | yes | Returns a list of reported post in an array, each post is in Hash Table format. Returns null if total_report_num = 0 | |
forum_id | String | yes | | |
forum_name | byte[] | yes | | |
topic_id | String | yes | | |
topic_title | byte[] | yes | | |
post_id | String | yes | | |
post_title | byte[] | yes | | |
post_author_id | String | yes | | |
post_author_name | byte[] | yes | | |
icon_url | String | yes | post author avatar url | |
post_time | Date | yes | | |
timestamp | String | yes | Timestamp of topic last post | |
short_content | byte[] | yes | Characters display rules (should follow this sequence): 1) Remove all BBCode except [ur], [img]. 2) Convert "[url http://...]http://…..[/url]" to "[url]". 3) Convert "[img]http://…..[/img]" to "[img]". 4) Remove "Last edited by..." tag at the end. 5) Remove all non-displayable characters (e.g. \n, \t, etc). 6) Remove all whitespace, /n and /r at the beginning and ending of the content. 7) return only first 200 characters | |
report_id | String | | ID of the report record if forum system provide. | |
reported_by_id | String | | | |
reported_by_name | byte[] | | | |
report_reason | byte[] | | | |