Method and apparatus for publishing post, and storage medium
AssigneeGuangzhou Huaduo Network Technology Co., Ltd.
InventorPeihan GUO
Life of this patent
Estimating the term…
Abstract
Disclosed is a method for publishing a post. The method includes: in response to receiving a first publish request from a first terminal, first determining, based on location information of the first terminal, whether the first terminal is positioned in a delimited area; and publishing, based on a topic, a post carried in the first publish request only when the first terminal is positioned in the delimited area. Apparatuses for publishing posts and storage mediums are also provided.
Claims17
A method for publishing a post, comprising:
- receiving a first publish request from a first terminal, wherein the first publish request carries a post to be published and location information of the first terminal;
- acquiring a plurality of posts published within a first duration, wherein the first duration is a time duration before current time and closest to the current time;
- acquiring location information of a terminal for publishing each of the plurality of posts to obtain a plurality of pieces of location information, wherein the plurality of pieces of location information are in one-to-one correspondence with the plurality of posts;
- acquiring a plurality of location information sets by clustering the plurality of pieces of location information;
- determining, based on location information contained in each of the plurality of location information sets, a coverage area of each of the plurality of the location information sets and a diameter of the coverage area of each of the plurality of the location information sets;
- searching for a target location information set from the plurality of location information sets, wherein a quantity of location information contained in the target location information set is greater than a reference quantity, and a diameter of the coverage area of the target location information set is smaller than a reference diameter;
- determining a topic based on posts corresponding to the location information in the target location information set;
- determining, based on the coverage area of the target location information set, a delimited are corresponding to the topic;
- acquiring a topic corresponding to the delimited area in response to determining, based on the location information of the first terminal, that the first terminal is positioned in the delimited area, wherein the delimited area comprises a geographic location range of a terminal allowed to publish a post related to the topic;
- and
- publishing, based on the topic, the post carried in the first publish request, such that the first terminal and other terminals display the post carried in the first publish request in a page area corresponding to the topic.
2-3. (canceled)
An apparatus for publishing a post, comprising:
- a processor;
- and
- a memory configured to store at least one instruction executable by the processor;
- wherein
- the processor;
- when executing the at least one instruction, is caused to perform a method for publishing a post, the method comprising:
- receiving a first publish request from a first terminal, wherein the first publish request carries a post to be published and location information of the first terminal;
- acquiring a plurality of posts published within a first duration, wherein the first duration is a time duration before current time and closest to the current time;
- acquiring location information of a terminal for publishing each of the plurality of posts to obtain a plurality of pieces of location information, wherein the plurality of pieces of location information are in one-to-one correspondence with the plurality of posts;
- acquiring a plurality of location information sets by clustering the plurality of pieces of location information;
- determining, based on location information contained in each of the plurality of location information sets, a coverage area of each of the plurality of the location information sets and a diameter of the coverage area of each or the plurality of the location information sets;
- searching for a target location information set from the plurality of location information sets, wherein a quantity of location information contained in the target location information set is greater than a reference quantity, and a diameter of the coverage area of the target location information set is smaller than a reference diameter;
- determining a topic based on posts corresponding to the location information in the target location information set;
- determining, based on the coverage area of the target location information set, a delimited area corresponding to the topic;
- acquiring a topic corresponding to the delimited area in response to determining, based on the location information of the first terminal, that the first terminal is positioned in the delimited area, wherein the delimited area comprises a geographic location range of a terminal allowed to publish a post related to the topic;
- and
- publishing, based on the topic, the post carried in the first publish request, such that the first terminal and other terminals display the post carried in the first publish request in a page area corresponding to the topic.
9-10. (canceled)
A non-transitory computer-readable storage medium storing at least one instruction therein, wherein the at least one instruction, when executed by a processor, causes the processor to perform a method for publishing a post, the method comprising:
- receiving a first publish request from a first terminal, wherein the first publish request carries a post to be published and location information of the first terminal;
- acquiring a plurality of posts published within a first duration, wherein the first duration is a time duration before current time and closest to the current time;
- acquiring location information of a terminal for publishing each of the plurality of posts to obtain a plurality of pieces of location information, wherein the plurality of pieces of location information arc in one-to-one correspondence with the plurality of posts;
- acquiring a plurality of location information sets by clustering the plurality of pieces of location information;
- determining, based on location information contained in each of the plurality of location information sets, a coverage area of each of the plurality of the location information sets and a diameter of the coverage area of each of the plurality of the location information sets;
- searching for a target location information set from the plurality of location information sets, wherein a quantity of location information contained in the target location information set is greater than a reference quantity, and a diameter of the coverage area of the target location information set is smaller than a reference diameter;
- determining a topic based on posts corresponding to the location information in the target location information set;
- determining, based on the coverage area of the target location information set, a delimited area corresponding to the topic;
- acquiring a topic corresponding to the delimited area in response to determining, based on the location information of the first terminal, that the first terminal is positioned tn the delimited area, wherein the delimited area comprises a geographic location range of a terminal allowed to publish a post related to the topic;
- and
- publishing, based on the topic, the post carried in the first publish request, such that the first terminal and other terminals display the post carried in the first publish request in a page area corresponding to the topic.
Dependencies are inferred from the claim text.