A comment processing method, apparatus, device, medium and program product

By displaying the primary sorting entry in the comment interface and sorting comments based on the interaction between the commenter and the publisher, the inconvenient comment sorting problem in existing technologies is solved, resulting in a more efficient comment filtering and reply experience.

CN122240947APending Publication Date: 2026-06-19TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2024-12-17
Publication Date
2026-06-19

AI Technical Summary

Technical Problem

Existing comment sorting methods mainly rely on parameters such as comment time and number of likes, which lacks convenience and cannot effectively reflect the interaction between the commenter and the content publisher, resulting in inaccurate comment sorting.

Method used

A comment processing method is provided, which triggers the sorting of comment data based on the interaction between the comment object and the published work by displaying the first sorting entry in the comment interface, including parameters such as the number of interactions, time and frequency, and generates the comment sorting results.

Benefits of technology

It improves the convenience of comment sorting and the user experience for authors, enabling them to quickly filter out user comments that have a high degree of interaction with them, thus improving the efficiency and quality of comment replies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122240947A_ABST
    Figure CN122240947A_ABST
Patent Text Reader

Abstract

This application provides a comment processing method, apparatus, device, medium, and program product. The method includes: displaying a comment interface for a work, where the comment interface displays N comment data entries, where N is an integer greater than 1; displaying a first sorting entry point in the comment interface, the first sorting entry point being used to trigger: sorting the N comment data entries according to the interactivity between the comment object and the publishing object of the work; and displaying a comment sorting result in response to the triggering operation of the first sorting entry point, the comment sorting result including: the sorted N comment data entries obtained by sorting the N comment data entries according to the interactivity between the comment object and the publishing object of the work. This application supports sorting comments according to the interactivity between the author and the comment object, which can improve the convenience of comment sorting, as well as the author's operating experience and response efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, specifically to a comment processing method, a comment processing apparatus, a computer device, a computer-readable storage medium, and a computer program product. Background Technology

[0002] With the rapid development of internet technology, a large number of works (such as videos, audio, text, images, and any other type of works) are widely disseminated on various platforms. Users can comment on these works, generating a large amount of comment data. Therefore, sorting this massive amount of comment data has become an important means of managing works. Currently, comment sorting is often based on parameters inherent to the comment data itself (such as comment time, number of likes, etc.), which is not a convenient method. Summary of the Invention

[0003] This application provides a comment processing method, apparatus, device, medium, and program product that supports comment sorting based on the interactivity between the comment object and the publishing object (author) of the work, thereby improving the convenience of comment sorting, as well as the author's operating experience and response efficiency.

[0004] On the one hand, embodiments of this application provide a comment processing method, including:

[0005] The comment interface for the work is displayed, and N comments are shown in the comment interface, where N is an integer greater than 1;

[0006] The first sorting entry is displayed in the comment interface. The first sorting entry is used to trigger the sorting of N comment data according to the interactivity between the comment object and the publishing object of the published work.

[0007] In response to the trigger operation of the first sorting entry, the comment sorting results are displayed. The comment sorting results include: N sorted comment data obtained by sorting the N comment data according to the interactivity between the comment object and the publishing object of the published work.

[0008] On the one hand, embodiments of this application provide a comment processing method, including:

[0009] The system receives a comment sorting request from a client. This client is used to display the first sorting entry in the comment interface of a work. The comment interface displays N comment data. The comment sorting request is initiated after the first sorting entry is detected to be triggered. The first sorting entry is used to trigger the sorting of the N comment data according to the interactivity between the comment object and the publishing object of the work. N is an integer greater than 1.

[0010] Based on the comment sorting request, the N comments are sorted according to the interactivity between the commenters and the publishers of the works to obtain the comment sorting results.

[0011] The comment sorting results are returned to the client so that they can be displayed on the client.

[0012] On one hand, embodiments of this application provide a comment processing apparatus, including:

[0013] The display unit is used to display the comment interface of the work. The comment interface displays N comment data, where N is an integer greater than 1.

[0014] The display unit is also used to display the first sorting entry in the comment interface. The first sorting entry is used to trigger: sorting N comment data according to the interactivity between the comment object and the publishing object of the published work.

[0015] The processing unit is used to respond to the trigger operation of the first sorting entry and display the comment sorting results. The comment sorting results include: N sorted comment data obtained by sorting N comment data according to the interactivity between the comment object and the publishing object of the published work.

[0016] In one possible implementation, the display unit shows the first sorting entry in the comment interface, which is used to perform the following operations:

[0017] When the number of comments N reaches a preset threshold, the first sorting entry is displayed on the comment interface; or,

[0018] If the comment interface is detected as the comment interface of the work's publisher, then the first sorting entry will be displayed in the comment interface; or,

[0019] Display N comments in the comment interface, and simultaneously display the first sorting entry in the comment interface; or,

[0020] In response to a sorting trigger event detected in the comment interface, a sorting panel is output in the comment interface, and the first sorting entry is displayed in the sorting panel; wherein the display relationship between the sorting panel and the comment interface includes any one of the following: floating display, overlay display, and window display.

[0021] In one possible implementation, a sorting control is set in the comment interface; if the sorting control is triggered, a sorting trigger event is generated; or...

[0022] The comment interface has a sorting operation area. If a specified operation is detected in the sorting operation area, a sorting trigger event is generated. The specified operation includes any one of the following: single click, double click, long press, or preset gesture operation.

[0023] In one possible implementation, the processing unit is also used to perform the following operations:

[0024] The sorting panel displays K sorting entries, which are either preset by the system or preset by the publishing entity of the work; or...

[0025] Obtain the target permission level of the object to which the work is to be published, and display K sorting entries in the sorting panel that match the target permission level of the object to be published; different permission levels are used to match different sorting entries;

[0026] The first sorting entry refers to any one of the K sorting entries.

[0027] In one possible implementation, the K sorting entry points include: a first sorting entry point, a second sorting entry point, and a third sorting entry point. The second sorting entry point triggers the sorting of N comments based on their comment parameters. The third sorting entry point triggers the sorting of N comments based on their comment parameters and the interactivity between the commenter and the publisher. The number of first sorting entry points is K1, the number of second sorting entry points is K2, and the number of third sorting entry points is K3. K1, K2, and K3 are all positive integers, and K1 + K2 + K3 = K. The K sorting entry points can be displayed in any of the following ways:

[0028] Randomly display K sorting entries;

[0029] Sorting and displaying the K sorting entries according to preset priority;

[0030] Based on the historical operation data performed on the K sorting entries by the publishing objects of the works within the historical time period, the K sorting entries are sorted and displayed.

[0031] In one possible implementation, a comment data entry includes comment content generated by a comment object performing a comment operation on a work, and interaction data generated by at least one interactive object performing an interactive operation on the comment content; wherein...

[0032] The first sorting entry is used to trigger any one or more of the following sorting methods: sorting N comments according to the number of interactions between the commenter and the publisher of the work; sorting N comments according to the interaction time between the commenter and the publisher of the work; sorting N comments according to the interaction frequency between the commenter and the publisher of the work.

[0033] The second sorting entry is used to trigger one or more of the following sorting methods: sorting the N comments according to their comment time; sorting the N comments according to the number of interactive operations performed on each of the N comments.

[0034] The third sorting entry is used to trigger a comprehensive sorting process for N comment data based on at least one sorting metric. The sorting metrics include any one or more of the following: comment time, number of interactions between the commenter and the poster, interaction frequency, interaction time, interaction relationship, activity level of the commenter, and permission level.

[0035] In one possible implementation, after displaying the comment interface for the work, the processing unit is also used to perform the following operations:

[0036] The sorting interface displays N comments sorted according to the reference sorting method.

[0037] Wherein, the reference sorting method is the sorting method triggered by any of the K sorting entries; or,

[0038] The reference sorting method is the sorting method triggered by the sorting entry preset by the publishing object of the work among the K sorting entries; or,

[0039] The reference sorting method is the sorting method triggered by the publishing object of the work selecting the most frequent sorting entry from K sorting entries.

[0040] In one possible implementation, the display unit shows the comment sorting results and performs the following operations:

[0041] The comments are sorted by the number of interactions between the commenter and the publisher of the work, from most to least; or,

[0042] The comments are sorted by the interaction time between the commenter and the publisher of the work, from most recent to oldest; or,

[0043] The comments are sorted from highest to lowest based on the frequency of interaction between the commenters and the publishers of the published works.

[0044] The comment sorting result includes N sorted comment data.

[0045] In one possible implementation, the processing unit is also used to perform the following operations:

[0046] Display the sorted N comments in a top-to-bottom order; or,

[0047] Display the sorted N comments from left to right; or,

[0048] The sorted N comments are displayed in a circular display manner, which includes any of the following: using the comment with the latest comment time as the center point and the other comments in the N comments (excluding the center point) as points on the circumference; using the comment with the most interactive actions as the center point and the other comments in the N comments (excluding the center point) as points on the circumference; or using the comment with the highest interaction frequency as the center point and the other comments in the N comments (excluding the center point) as points on the circumference.

[0049] In one possible implementation, the processing unit is also used to perform the following operations:

[0050] M comments out of the N sorted comments are highlighted; M is a positive integer and M≤N; the M highlighted comments include any of the following: the comment object has an interactive relationship with the object that published the work, the comment object's permission level meets the preset permission level, or it is in the first M sorting order out of the N sorting orders;

[0051] Highlighting methods include any one or more of the following: animated display, highlighting, color differentiation display, and font differentiation display.

[0052] In one possible implementation, the processing unit is also used to perform the following operations:

[0053] In response to a sorting operation on comment data i among N comment data, move comment data i to the target sorting position indicated by the sorting operation for display; i is a positive integer and i≤N;

[0054] The sorting operation includes any one of the following: drag operation, slide operation, and reply operation; and the target sorting position is any one of the following: any position, top position, and preset position.

[0055] In one possible implementation, the processing unit is also used to perform the following operations:

[0056] In response to a comment update event for a work, update the display of N comment data in the comment interface; the comment update event can be generated in any of the following ways:

[0057] If an edit operation is detected on comment data i out of N comment data, a comment update event is generated; or,

[0058] If comment data i out of N comments is detected to have expired, a comment update event is generated; or,

[0059] If new comment data for a work is received, a comment update event is generated.

[0060] In one possible implementation, the processing unit is also used to perform the following operations:

[0061] In response to a sharing operation on comment data i, output a list of social objects, which includes at least one social object associated with the object that published the work;

[0062] In response to a selection action targeting a specific social media user, the comment data i and the associated artwork are shared with that user.

[0063] On one hand, embodiments of this application provide a comment processing apparatus, including:

[0064] The receiving unit is used to receive a comment sorting request sent by a client. The client is used to display the first sorting entry in the comment interface of the work. The comment interface displays N comment data. The comment sorting request is initiated after the first sorting entry is detected to be triggered. The first sorting entry is used to trigger: sorting the N comment data according to the interactivity between the comment object and the publishing object of the work, where N is an integer greater than 1.

[0065] The processing unit is used to sort N comments based on the comment sorting request and according to the interactivity between the comment object and the publishing object of the published work to obtain the comment sorting result;

[0066] The sending unit is used to return the comment sorting results to the client so that the comment sorting results can be displayed on the client.

[0067] In one possible implementation, the processing unit, based on the comment sorting request, sorts N comments according to the interactivity between the commenting object and the publishing object of the work, to obtain the comment sorting result, which is then used to perform the following operations:

[0068] The comment sorting request is parsed to obtain the parsing result, which includes the work identifier and sorting method. The sorting method indicates that the N comments are sorted according to the interactivity between the commenter and the publisher of the work.

[0069] Obtain N comment data related to the work based on the work's identifier;

[0070] The interaction parameters between the comment object and the publishing object of the work are obtained based on the sorting method, and the N comment data are sorted based on the interaction parameters to obtain the comment sorting result.

[0071] In one possible implementation, the processing unit is also used to perform the following operations:

[0072] Retrieve comment cache data, which includes multiple work identifiers and a list of comment caches associated with each work identifier. The comment cache list includes at least one sorted and processed comment, and the comment data has a valid duration.

[0073] Based on the work's identifier, a data query is performed from the comment cache data to obtain the query results for the work; the query results include a list of the work's comment cache.

[0074] If the query result indicates that the comment data in the work's comment cache list is within the valid duration, then the comment ranking result of the work is obtained based on the work's comment cache list.

[0075] In one possible implementation, after receiving the comment sorting request sent by the client, the processing unit is also used to perform the following operations:

[0076] Obtain the client's identifier and verify the client according to the client's identifier. The verification includes at least one of the following: permission verification, security verification, and legality verification.

[0077] If the client verification passes, a comment sorting request is responded to, and the following steps are triggered: based on the comment sorting request, the N comment data are sorted according to the interactivity between the comment object and the publishing object of the published work to obtain the comment sorting result;

[0078] If the client's permission verification fails, the comment sorting request will be deleted.

[0079] On one hand, embodiments of this application provide a computer device, which includes a processor and a memory; the memory stores a computer program; when the computer program is executed by the processor, it performs the above-described comment processing method.

[0080] On one hand, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the aforementioned comment processing method.

[0081] On one hand, embodiments of this application provide a computer program product, which includes a computer program. When the computer program is executed by a processor, it performs the above-described comment processing method.

[0082] In this embodiment, a comment interface for a work is displayed, showing N comment data entries, where N is an integer greater than 1. A first sorting entry is displayed in the comment interface, which triggers a sorting process for the N comment data entries based on the interactivity between the commenting object and the publishing object of the work. In response to the triggering operation of the first sorting entry, a comment sorting result is displayed, which includes the sorted N comment data entries obtained by sorting the N comment data entries based on the interactivity between the commenting object and the publishing object of the work. Therefore, this application supports directly displaying a sorting entry in the comment interface, improving the convenience of comment sorting. Simultaneously, supporting comment sorting based on the interactivity between the commenting object and the publishing object (author) helps authors filter out user comments with high interaction levels from a large amount of comment data for viewing and replying, enabling faster filtering of high-quality comment data and valuable interactive content, thereby improving the author's user experience and the efficiency of replying to comments. Attached Figure Description

[0083] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0084] Figure 1a This is a schematic diagram of the structure of a comment processing system provided in an embodiment of this application;

[0085] Figure 1b This is an interactive flowchart of a comment processing method provided in an embodiment of this application;

[0086] Figure 2 This is a flowchart illustrating a comment processing method provided in an embodiment of this application;

[0087] Figure 3 This is a schematic diagram of a comment interface for displaying a work provided in an embodiment of this application;

[0088] Figure 4a This is a schematic diagram of an interface for displaying a first sorting entry provided in an embodiment of this application;

[0089] Figure 4b This is a schematic diagram of another interface for displaying the first sorting entry provided in an embodiment of this application;

[0090] Figure 4c This is a schematic diagram of another interface for displaying the first sorting entry provided in an embodiment of this application;

[0091] Figure 5a This is a comparative schematic diagram of an output sorting panel displaying different permission levels provided in an embodiment of this application;

[0092] Figure 5b This is a comparative schematic diagram of another display of output sorting panels with different permission levels provided in an embodiment of this application;

[0093] Figure 6a This is a schematic diagram of an interface for displaying multiple sorting entries according to an embodiment of this application;

[0094] Figure 6b This is a schematic diagram of another interface for displaying multiple sorting entries provided in an embodiment of this application;

[0095] Figure 7a This is a schematic diagram of a flowchart for displaying comment sorting results provided in an embodiment of this application;

[0096] Figure 7b This is a schematic diagram of another process for displaying comment sorting results provided in an embodiment of this application;

[0097] Figure 7c This is a schematic diagram of another process for displaying comment sorting results provided in an embodiment of this application;

[0098] Figure 8a This is a schematic diagram of an interface for displaying comment data provided in an embodiment of this application;

[0099] Figure 8b This is a schematic diagram of another interface for displaying comment data provided in an embodiment of this application;

[0100] Figure 9 This is a schematic diagram of an interface for sharing comment data provided in an embodiment of this application;

[0101] Figure 10a This is a schematic diagram of a comment sorting scenario provided in an embodiment of this application;

[0102] Figure 10b This is a schematic diagram illustrating another scenario for comment sorting provided in an embodiment of this application;

[0103] Figure 10c This is a schematic diagram illustrating another scenario for comment sorting provided in an embodiment of this application;

[0104] Figure 11 This is a system architecture diagram for obtaining comment data from a work, provided in an embodiment of this application.

[0105] Figure 12 This is a timing diagram provided in an embodiment of this application for obtaining comment data from a work;

[0106] Figure 13 This is a flowchart illustrating the updating process of comment data for a work, as provided in an embodiment of this application.

[0107] Figure 14 This is a flowchart illustrating another comment processing method provided in an embodiment of this application;

[0108] Figure 15 This is a schematic diagram of the structure of a comment processing device provided in an embodiment of this application;

[0109] Figure 16 This is a schematic diagram of another comment processing device provided in an embodiment of this application;

[0110] Figure 17 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0111] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0112] This application provides a comment processing scheme that allows the publisher (i.e., the author) to sort comments within the comment interface. It also supports sorting comments based on the interaction between the commenter and the author, enabling authors to filter through large amounts of comment data and view and reply to comments with high levels of interaction, thereby improving the author's user experience and the efficiency of replying to comments. Specifically, this scheme supports displaying a sorting entry point (such as a first sorting entry point) in the comment interface, and triggering this first sorting entry point to perform comment sorting, which improves the convenience of sorting, as well as the author's user experience and efficiency. The implementation principle of this comment processing scheme roughly includes the following steps:

[0113] (1) Display the comment interface of the work. The comment interface displays N comment data, where N is an integer greater than 1. The work can be any type of work such as video, audio, text, image, etc. After the work is published, it supports various objects to interact with the work (such as commenting, liking, sharing, forwarding, etc.). Any object can generate a comment data after commenting on the work.

[0114] (2) Display the first sorting entry in the comment interface. This first sorting entry is used to trigger the sorting of N comment data according to the interactivity between the comment object and the publishing object of the work. The first sorting entry can be displayed directly in the comment interface or indirectly (i.e., it can only be displayed after other triggering operations). In addition, the interactivity between the comment object and the publishing object can be represented by interaction parameters, which include, but are not limited to, at least one of the following: number of interactions, interaction time, and interaction frequency.

[0115] (3) In response to the trigger operation of the first sorting entry, display the comment sorting results. The comment sorting results here include: N sorted comment data obtained by sorting N comment data according to the interactivity between the commenting object and the publishing object. For example, if the interactivity (e.g., number of interactions) between the commenting object and the publishing object is higher, the comment data posted by that commenting object will be displayed earlier; conversely, if the number of interactions between the commenting object and the publishing object is lower, the comment data posted by that commenting object will be displayed later. Based on this, authors can filter out user comments with more interactions with them from a large amount of comment data for viewing and replying, thereby improving the efficiency of author comment replies and enhancing the author's comment reply experience.

[0116] As described above, this application provides a solution to support authors in sorting comments, which can improve the author's user experience and comment reply efficiency. On one hand, it supports displaying a sorting entry point directly in the comment interface, allowing authors to easily sort comments simply by triggering this entry point, thus improving the convenience of comment sorting. On the other hand, it supports sorting comments based on the interaction between the commenter and the publisher (author), which helps authors filter out user comments with high interaction levels from a large amount of comment data for viewing and replying. This allows for faster filtering of high-quality comment data and valuable interactive content, thereby improving the author's user experience and efficiency in replying to comments.

[0117] The key technical terms involved in the embodiments of this application are explained below.

[0118] (1) Works and comments interface:

[0119] A work refers to the result of an author's independent intellectual labor, expressed in a certain form. It is a product used to display or present content of any type, including but not limited to novels, films, television series, and articles. Different works may have the same or different types of content, including video, text, images, audio, etc. For example, a film or television series typically contains video or images; a novel typically contains text. Of course, a single work can include one or more types of content simultaneously; for example, a television series may include video, text, and images, among other things. Generally speaking, a work possesses the characteristic of being disseminated. Disseminatedness means that the work can be disseminated and shared by the author with other parties through certain channels. The parties being shared with can perform interactive operations on the work, such as commenting, liking, collecting, and sharing. Among them, the author who publishes the work (such as video, text, novel, etc.) is called the publishing party, and the party that comments on the work is called the commenting party. After the commenting party comments on the work, corresponding comment data can be generated. Furthermore, any comment data can be interactively performed by other parties again (such as liking, sharing, forwarding, etc.).

[0120] A comment interface, as the name suggests, is an interface used to display comment data for a work. Since works can be displayed in any type of application (app), the comment interface can be an interface within any application. Categorized by whether it is installed, applications include, but are not limited to: portable applications (such as mini-programs, web applications) and third-party applications that require installation; categorized by function, applications include, but are not limited to, one or more of the following: social applications, live streaming applications, game applications, office applications, etc. This application supports various objects to comment on published works. Based on this, once a work is published, at least one (e.g., N, where N is an integer greater than 1) comment data from other comment objects can be collected, and then the N comment data for the current work can be displayed in the comment interface.

[0121] (2) First sorting entry, second sorting entry, third sorting entry:

[0122] A sorting entry point is an entry point used to trigger comment sorting. An entry point is a component used to trigger the execution of a specific operation or step; for example, an entry point can be a button, control, or selection item. Here, the sorting entry point can be a primary entry point or a secondary entry point. A primary entry point is one directly displayed in the comment interface, while a secondary entry point is one indirectly displayed. Indirect display means not directly displayed; therefore, a secondary entry point is an entry point that can only be displayed after a certain triggering operation is performed (i.e., a hidden entry point). This application supports providing multiple sorting entry points, any one of which is used to trigger the comment sorting operation; furthermore, different sorting entry points are used to trigger different comment sorting methods. The first, second, and third sorting entry points involved in this application are explained in detail below:

[0123] The first sorting entry point is used to trigger a sorting process that ranks N comments based on the interactivity between the commenter and the publisher. This interaction includes actions such as commenting, liking, saving, and sharing; or replying, liking, sorting, and sharing comments. The interactivity between the commenter and publisher can be represented by interaction parameters, which include, but are not limited to, one or more of the following: number of interactions, interaction time, and interaction frequency. Therefore, the first sorting entry point is used to trigger the sorting of N comments based on one or more of these interaction parameters.

[0124] The second sorting entry point is used to trigger the sorting of N comments according to their comment parameters. Specifically, these parameters include, but are not limited to, one or more of the following: comment time and the number of interactive actions performed (such as likes). Therefore, the second sorting entry point is used to trigger the sorting of N comments according to one or more of these parameters.

[0125] The third sorting entry point is used to trigger a sorting process that ranks N comments based on their comment parameters and the interactivity between the commenter and the publisher. Since comment parameters include, but are not limited to, comment time and the number of interactive actions performed (e.g., likes); and interaction parameters include, but are not limited to, interaction count, interaction time, and interaction frequency, the third sorting entry point is used to trigger a comprehensive sorting process for N comments based on one or more of the comment parameters (comment time, likes) and one or more of the interaction parameters (interaction count, interaction time, interaction frequency) between the commenter and the publisher.

[0126] In summary, the aforementioned first, second, and third sorting entry points represent three different types of sorting entry points. For example, the first sorting entry point is a type 1 sorting entry point, the second sorting entry point is a type 2 sorting entry point, and the third sorting entry point is a type 3 sorting entry point. Furthermore, these different types of sorting entry points are used to trigger different dimensions of comment sorting processing on N comment data. For instance, the first sorting entry point sorts comments based on the interaction dimension between objects, the second sorting entry point sorts comments based on the comment data dimension, and the third sorting entry point sorts comments based on a comprehensive dimension (such as including interaction, comment data, and other dimensions). This application provides multiple sorting entry points, allowing authors (i.e., the objects publishing the work) to customize and select the appropriate sorting entry point for comment sorting, thus meeting authors' needs for convenience and flexibility in comment management.

[0127] (3) Interactivity:

[0128] Interactivity is a way of representing the degree of interaction between the commenter and the publisher of the work. Specifically, interactivity can be represented by interaction parameters, which include, but are not limited to, any one or more of the following: number of interactions, interaction time, and interaction frequency. In this application, a set of interaction parameters exists between a publisher and a commenter, and these interaction parameters are used as sorting indicators to rank N comment data. For example, taking the number of interactions as the interaction parameter (such as the number of times a commenter comments on a publisher's work, or the number of times a publisher replies to a commenter's comment data), if the number of interactions 1 between a publisher and commenter 1 is higher than the number of interactions 2 between a publisher and commenter 2, then the degree of interaction between the publisher and commenter 1 is higher than the degree of interaction between the publisher and commenter 2.

[0129] (4) Comment sorting results:

[0130] Comment ranking results are the sorted results of N comments. Specifically, the ranking results include N comments sorted according to the interactivity between the commenter and the publisher. For example, the higher the interaction frequency between the commenter and the publisher, the higher the ranking of the commenter's comments; conversely, the lower the interaction frequency, the lower the ranking of the commenter's comments. Based on this, authors can filter through a large amount of comment data to view and reply to comments from users who have interacted with them more frequently, thereby improving the efficiency and user experience of replying to comments.

[0131] Furthermore, the comment processing solution provided in this application requires special clarification on the following two points:

[0132] 1. The relevant data involved in the comment processing process in this application (e.g., N comment data, comment sorting results, etc.). When the above embodiments of this application are applied to specific products or technologies, permission or consent from the target audience is required, and the collection, use, and processing of relevant data must comply with the relevant laws, regulations, and standards of the region, conforming to the principles of legality, legitimacy, and necessity, and not involving the acquisition of data types prohibited or restricted by laws and regulations. In some optional embodiments, the relevant data involved in the embodiments of this application is obtained after separate authorization from the target audience. In addition, when obtaining separate authorization from the target audience, the purpose of the relevant data is explained to the target audience.

[0133] 2. It is understood that in this application, the term "at least one" refers to one or more, and "multiple" means two or more; for example, "at least one sorting entry" refers to one, two, or more sorting entries. The terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function. It should be understood that there is no logical or temporal dependency between "first," "second," and "nth," nor are there any limitations on the quantity or execution order.

[0134] The following is combined with Figure 1a and Figure 1b This application provides a description of the comment processing system.

[0135] I. Combination Figure 1a This section introduces the overall architecture of the comment processing system.

[0136] Please see Figure 1a , Figure 1a This is a schematic diagram of the structure of a comment processing system provided in an embodiment of this application. For example... Figure 1aAs shown, the comment processing system may include multiple terminal devices (e.g., first terminal device 101, second terminal device 102, etc.) and a server 103. This application does not specifically limit the number of terminal devices and servers. For example, the first terminal device 101 is the terminal device used by the object publishing the work, and the second terminal device 102 is the terminal device used by the object commenting on the work. Furthermore, each terminal device runs a client, which can then display the work and the comment interface for each object through the client. Each terminal device (e.g., the first terminal device 101) can be directly or indirectly connected to the server 103 via a network. The network may include, but is not limited to, wired networks and wireless networks. The wired network includes local area networks (LANs), metropolitan area networks (MANs), and wide area networks (WANs). The wireless network includes Bluetooth, Wi-Fi (Wireless Fidelity, a standard wireless LAN), and other networks that enable wireless communication. The first terminal device 101 can interact with other terminal devices (e.g., the second terminal device 102) connected to the server 103 through the server 103.

[0137] in, Figure 1a Any terminal device in the comment processing system shown can include, but is not limited to: smartphones, tablets, laptops, desktop computers, smart speakers, smartwatches, in-vehicle terminals, smart wearable devices, etc. The client often has a display device, which can be a monitor, display screen, touchscreen, etc., and the touchscreen can be a touchscreen, touch panel, etc. Additionally, Figure 1a The server 103 in the comment processing system shown can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0138] The following example uses the first terminal device 101 (the terminal device used by the object publishing the work) as an example to illustrate the interaction process between the first terminal device 101 and the server 103, combined with the comment processing method provided in this solution.

[0139] ① The first terminal device 101 can display the work in the running target application. The target application can be any type of APP, such as a social application, a live streaming application, a game application, or an office application, and supports any user (object) to perform interactive operations (such as commenting) on ​​the displayed work.

[0140] ② The first terminal device 101 displays a comment interface for the aforementioned work. This comment interface displays N comment data entries, where N is an integer greater than 1. Each comment data entry refers to the data generated after a commenter posts a comment on the work. The comment data can include: comment content generated by a commenter performing a comment operation on the work, and interactive data generated by at least one interactive object performing an interactive operation on the comment content (such as liking, replying, sharing, etc.).

[0141] ③ The first terminal device 101 displays a first sorting entry in the comment interface. This first sorting entry is used to trigger the sorting of N comment data according to the interactivity between the comment object and the publishing object of the work. This first sorting entry can be displayed directly in the comment interface or indirectly (i.e., it can only be displayed after other triggering operations). Furthermore, the interactivity between the comment object and the publishing object can be represented by interaction parameters, which include, but are not limited to, at least one of: number of interactions, interaction time, and interaction frequency.

[0142] ④ In response to the triggering operation of the first sorting entry, the first terminal device 101 generates a comment sorting request and sends the comment sorting request to the server 103.

[0143] ⑤ Based on the comment sorting request, server 103 sorts the N comment data according to the interactivity between the comment object and the publishing object of the published work to obtain the comment sorting result; and server 103 sends the comment sorting result to the first terminal device 101.

[0144] ⑥ After receiving the comment sorting results, the first terminal device 101 can display the sorting results on the comment interface, that is, display the sorted N comment data. For example, the comment data in the comment sorting results are sorted in descending order of the number of interactions between the commenter and the publisher. That is, the higher the number of interactions between the commenter and the publisher, the higher the display of the comment data posted by that commenter. This helps the author to filter out user comments with more interactions with themselves from a large amount of comment data for viewing and replying, thereby improving the efficiency of the author's comment reply and the author's comment reply operation experience.

[0145] The comment processing procedure described above is for illustrative purposes only and does not limit the specific execution process of any terminal device (such as the first terminal device mentioned above) and the server. Optionally, the complete comment processing flow described above can be executed by any terminal device or server alone; or, the comment processing procedure described above can also be jointly executed by the second terminal device (or any other terminal device) and the server.

[0146] In one possible implementation, the comment processing system provided in this application embodiment can be deployed on blockchain nodes. For example, the first terminal device 101, the second terminal device 102, and the server 103 in the comment processing system can all be treated as blockchain node devices, jointly forming a blockchain network. Therefore, the comment processing process involved in this application can be executed on the blockchain, which can ensure the fairness and impartiality of the comment processing process, make the process traceable, and ensure data security during the comment processing, thereby improving the security and reliability of the entire comment processing process.

[0147] II. Combination Figure 1b This section describes the complete interactive flow of comment processing methods.

[0148] Furthermore, each terminal device in the aforementioned comment processing system runs a client application. This client application can run any type of app (such as a social media app, live streaming app, game app, etc.) and can display a front-end interface (such as a UI interface) to the user within any app. The front-end interface can also display any type of work (such as videos, novels, etc.). Specifically, the first terminal device 101 (the object publishing the work) runs a first client application, and the second terminal device 102 (the object commenting on the work) runs a second client application. Additionally, a server application runs on the server, which provides backend technical support (such as data calculation, comment sorting, etc.) to the client (such as the first client). Please refer to [link to relevant documentation]. Figure 1b , Figure 1b This is an interactive flowchart of a comment processing method provided in an embodiment of this application. The following is in conjunction with... Figure 1b Here is an example illustrating the complete interaction flow between the first client, the second client, the front-end interface, and the server:

[0149] 1. The first client responds to the launch operation of the target application. The client runs at least one application, and the target application refers to any one of the at least one applications, or a specified application. The application (APP) involved here can be any type of APP, such as a game APP, a social APP, or a content interaction APP; furthermore, when the user performs a click operation (such as a single click) on the target application, it is considered that a launch operation for the target application has been generated.

[0150] 2. Display the work in the front-end interface of the target application. For example, the work here can include, but is not limited to: novels, movies, TV series, articles, etc.

[0151] 3. The second client sends comment data about the work to the server. The second client can also display the work published by the original poster and support commenting on it, thus generating comment data. Once the second client detects the posting of comment data, it sends the comment data about the work to the server.

[0152] 4. The server can receive and store at least one comment data about the work (e.g., N comments data, where N is an integer greater than 1), and return the N comments data to the front-end interface.

[0153] 5. Display the comment interface for the work on the front-end interface. The comment interface displays N comment data.

[0154] 6. Display the first sorting entry in the front-end interface. This first sorting entry is used to trigger the sorting of N comments based on the interactivity between the commenter and the publisher of the work. This first sorting entry can be displayed directly in the comment interface or indirectly (i.e., it can only be displayed after other triggering operations). 7. The first client responds to the triggering operation on the first sorting entry.

[0155] 8. The first client sends a comment sorting request to the server. This comment sorting request is used to request the comment sorting results of N comment data for the work from the server.

[0156] 9. The server sorts N comments based on the interactivity between the commenter and the publisher to obtain the comment ranking result. The interactivity between the commenter and the publisher can be represented by interaction parameters, which include, but are not limited to, at least one of: number of interactions, interaction time, and interaction frequency.

[0157] 10. The server returns the comment sorting results to the front-end interface.

[0158] 11. Display the comment sorting results (i.e., the sorted N comment data) on the front-end interface.

[0159] As can be seen from the above process, it supports displaying the first sorting entry in the comment interface of a work. Through this first sorting entry, the N data items are sorted according to the interaction between the commenter and the commenter. This allows for comment sorting from the perspective of user interaction, improving the flexibility required for authors to sort comments and enhancing the user experience of replying to comments.

[0160] The comment processing system provided in this application displays a comment interface for a work, showing N comment data entries. A first sorting entry is displayed in the comment interface, which triggers a sorting process for the N comment data entries based on the interactivity between the commenting object and the publishing object of the work. In response to the triggering operation of the first sorting entry, a comment sorting result is displayed, which includes the sorted N comment data entries obtained by sorting the N comment data entries based on the interactivity between the commenting object and the publishing object of the work. Therefore, this application supports directly displaying a sorting entry in the comment interface, improving the convenience of comment sorting. Simultaneously, it supports sorting comments based on the interactivity between the commenting object and the publishing object (author), which helps authors filter out user comments with high interaction levels from a large amount of comment data for viewing and replying, thereby improving the author's user experience and the efficiency of replying to comments.

[0161] It is understood that the comment processing system described in the embodiments of this application is for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and does not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art know, with the evolution of system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.

[0162] The comment processing method provided in the embodiments of this application will be described in detail below from a product perspective.

[0163] Please see Figure 2 , Figure 2 This is a schematic flowchart of a comment processing method provided in an embodiment of this application. The comment processing method can be performed by a computer device (such as...) Figure 1a Execute on any of the terminal devices shown; as Figure 2 As shown, the comment processing method includes, but is not limited to, the following steps S201-S203:

[0164] S201. Display the comment interface for the work. The comment interface displays N comment data, where N is an integer greater than 1.

[0165] Specifically, the works here can include, but are not limited to, any type of creative output such as videos (e.g., short videos, vlogs), novels, movies, TV series, and articles. The comment interface is an interface used to display comment data for a work; for example, this comment interface might display N comments about the work (N being an integer greater than 1).

[0166] In one possible implementation, the comment interface for the work is displayed, specifically including the following two scenarios: Scenario 1: Displaying a comment interface that shows N comment data related to the work; that is, this comment interface is a dedicated interface for displaying comment data. Scenario 2: Displaying the content page of the work, and displaying the comment interface of the work within the content page; this comment interface displays N comment data related to the work, as well as the work content. This comment interface is displayed within the content page of the work, and it can display both comment data and work content, thus enabling the work content to be displayed synchronously while the comment data is being displayed. This avoids interrupting the playback and display of the work (such as a video) when the user is viewing comments, thereby improving the user's viewing experience.

[0167] Please see Figure 3 , Figure 3 This is a schematic diagram of a comment interface for displaying works provided in an embodiment of this application. For example... Figure 3 As shown, the comment interface displays at least one comment data entry (e.g., comment data 1, comment data 2, etc.) and the content of the work. A comment data entry can be generated by a commenting object after posting a comment on the current work; for example, comment data 1 is generated by user 1 after posting a comment, and comment data 2 is generated by user 2 after posting a comment. Furthermore, after any comment data entry is posted, other users can perform interactive operations on that comment data, such as liking, replying, sharing, etc. Therefore, any comment data entry includes: the comment content generated by a commenting object performing a comment operation on the work, and the interactive data (e.g., the number of likes) generated by at least one interactive object performing an interactive operation (e.g., liking, replying, sharing) on ​​the comment content; for example, comment data 1 has 68 likes, and comment data 2 has 50 likes.

[0168] S202. Display the first sorting entry in the comment interface. The first sorting entry is used to trigger: sort the N comment data according to the interactivity between the comment object and the publishing object of the published work.

[0169] Interactivity, in this context, refers to the degree of interaction between the commenter and the publisher of a work. Specifically, the interactivity between the commenter and the publisher can be represented by interaction parameters, which include, but are not limited to, one or more of the following: number of interactions, interaction time, and interaction frequency. For example, using the number of interactions (such as the number of times a commenter comments on a publisher's work, or the number of times a publisher replies to a commenter's comment data) as an interaction parameter, if the number of interactions (1) between the publisher and commenter 1 is higher than the number of interactions (2) between the publisher and commenter 2, then the degree of interaction between the publisher and commenter 1 is higher than the degree of interaction between the publisher and commenter 2.

[0170] In one possible implementation, several ways to display the first sorting entry are explained below with reference to the accompanying drawings. Specifically, displaying the first sorting entry in the comment interface includes the following methods:

[0171] (1) When the number of comment data N reaches a preset threshold, the first sorting entry is displayed in the comment interface. Specifically, the first sorting entry is triggered when the number of comment data N displayed in the comment interface reaches a certain threshold (such as a preset threshold of 15). Optionally, the preset threshold can be set according to experience or flexibly set according to needs in different scenarios, and there is no specific limitation on it.

[0172] (2) If the comment interface is detected to be the comment interface of the work's publisher, then the first sorting entry will be displayed in the comment interface. Specifically, this application supports the author (i.e., the work's publisher) in sorting the comment data. Therefore, the first sorting entry can be displayed in the comment interface only when the comment interface is the work's publisher, thus satisfying the author's need for comment sorting.

[0173] (3) Display N comments in the comment interface, and simultaneously display the first sorting entry in the comment interface. That is, the N comments and the first sorting entry are displayed synchronously in the comment interface. Please refer to [link / reference]. Figure 4a , Figure 4a This is a schematic diagram of an interface for displaying a first sorting entry provided in an embodiment of this application. For example... Figure 4a As shown, the first sorting entry is directly displayed in the comment interface. In other words, the first sorting entry is a first-level entry that is directly displayed in the comment interface, so that users (such as authors) can easily trigger the first sorting entry to perform comment sorting in the comment interface.

[0174] (4) In response to a sorting trigger event detected in the comment interface, a sorting panel is output in the comment interface, and a first sorting entry is displayed in the sorting panel; wherein the display relationship between the sorting panel and the comment interface includes any one of: floating display, overlay display, and window display. Specifically, a sorting control is provided in the comment interface, and if the sorting control is triggered, the above-mentioned sorting trigger event is generated; or, a sorting operation area is provided in the comment interface, and if a specified operation is detected in the sorting operation area, a sorting trigger event is generated, wherein the specified operation includes any one of: single-click operation, double-click operation, long-press operation, and preset gesture operation (e.g., a gesture operation to draw a symbol "V").

[0175] Please see Figure 4b , Figure 4b This is a schematic diagram of another interface for displaying the first sorting entry provided in an embodiment of this application. For example... Figure 4b As shown, the comment interface includes a sorting control 401. In response to a trigger operation on the sorting control 401 (such as a single click, double click, or long press), a sorting trigger event is generated, which in turn outputs a sorting panel 402 in the comment interface. This sorting panel 402 displays at least one sorting entry (such as a sorting option). Each sorting option corresponds to a sorting method, for example, five sorting options: Method 1, Method 2... Method 5 (meaning the sorting panel displays five sorting entries). The first sorting entry can then be displayed in the sorting panel. Here, the first sorting entry refers to any one of the sorting entries displayed in the sorting panel; for example, the first sorting entry refers to the sorting option corresponding to Method 1 in the sorting panel.

[0176] Please see Figure 4c , Figure 4c This is a schematic diagram of another interface for displaying the first sorting entry provided in an embodiment of this application. For example... Figure 4c As shown, the comment interface includes a sorting operation area 403. In response to a specified operation detected in this sorting operation area 403 (e.g., drawing a "V" sign), a sorting trigger event is generated, which in turn outputs a sorting panel 402 to the comment interface. This sorting panel 402 displays at least one sorting entry (e.g., a sorting selection item), and a first sorting entry can be displayed in the sorting panel. Here, the first sorting entry refers to any one of the sorting entries displayed in the sorting panel (e.g., the sorting selection item corresponding to method 1).

[0177] Based on this, among the display methods of the first sorting entry provided in (1)-(4) above, on the one hand, the embodiments of this application can support the direct display of the first sorting entry in the comment interface, that is, the first sorting entry is a first-level entry displayed in the comment interface, so that users (such as authors) can conveniently trigger the first sorting entry in the comment interface to perform comment sorting; on the other hand, it can also support the display of sorting controls in the comment interface, thereby triggering the sorting controls to output the sorting panel, and displaying the first sorting entry in the sorting panel. Since multiple sorting entries are displayed in the sorting panel, more sorting options can be provided to users (such as authors), thereby meeting the diverse sorting needs of authors.

[0178] Furthermore, since a sorting panel can be output in the comment interface, the display process of the sorting panel will be explained in detail below.

[0179] In one possible implementation, the K sorting entries are system-preset or author-preset permission entries. Specifically, the sorting panel displays K sorting entries, which are either system-preset for the work or preset by the work's publishing entity. That is, the sorting panel can display K sorting entries, either at least one of which is a system-preset requirement or at least one that the author (the work's publishing entity) custom-sets to be displayed. Figure 4b As shown, the sorting panel 402 displays at least one sorting entry, and each sorting entry is used to trigger a sorting method for N comment data. For example, the sorting entries displayed in the sorting panel 402 can be sorting options, such as: sorting entry 1 (sorting option corresponding to method 1), sorting entry 2 (sorting option corresponding to method 2), sorting entry 3 (sorting option corresponding to method 3), sorting entry 4 (sorting option corresponding to method 4), and sorting entry 5 (sorting option corresponding to method 5). Sorting entry 1 is used to trigger the sorting of N comment data according to method 1; similarly, sorting entry 2 is used to trigger the sorting of N comment data according to method 2. Based on this, users (such as authors) can select any sorting entry (such as the first sorting entry) in the sorting panel to perform comment sorting on N comment data.

[0180] In one possible implementation, the K sorting entries are permission entries that match the author's permission level. Specifically, the target permission level of the work's publishing object is obtained, and according to the target permission level, the K sorting entries matching the target permission level of the publishing object are displayed in the sorting panel. Different permission levels are used to match different sorting entries, and these differences include, but are not limited to, different numbers of sorting entries and different types of sorting entries. The first sorting entry refers to any one of the K sorting entries. The target permission level mentioned above refers to the permission level corresponding to the publishing object in the target application. Here, the target application refers to the application used to display or run the work of the publishing object. For example, if the target application is a social app, then the target permission level refers to the social permission level corresponding to the publishing object in that social app; as another example, if the target application is a live streaming app, then the target permission level refers to the live streaming permission level corresponding to the publishing object in that live streaming app; and as yet another example, if the target application is a game app, then the target permission level refers to the game permission level corresponding to the publishing object in that game app. Furthermore, for example, the higher the author's target permission level, the more sorting entries will be displayed in the sorting panel; similarly, the higher the author's target permission level, the more types of sorting entries will be displayed in the sorting panel; and even more so, the higher the author's target permission level, the more both the number and types of sorting entries will be displayed in the sorting panel. The following is combined with... Figure 5a and Figure 5b A comparison and explanation of the different sorting entries displayed in the sorting panel corresponding to different permission levels:

[0181] Please see Figure 5a , Figure 5a This is a comparative schematic diagram of an output sorting panel displaying different permission levels provided in an embodiment of this application. For example... Figure 5a As shown in Figure (1), if the target permission level of the work's publishing object is level one, the sorting panel displays three sorting entries; such as Figure 5a As shown in Figure (2), if the target permission level of the published work is level two, the sorting panel displays five sorting entries. Since level two is higher than level one, the number of sorting entries provided for published works at level two is higher than the number provided for published works at level one. In this implementation, the number of sorting entries in the output sorting panel differs for different permission levels, meaning it supports personalized output of different numbers of sorting entries according to permission levels, thus meeting the flexible sorting needs of different users.

[0182] Please see Figure 5b , Figure 5bThis is a comparative diagram illustrating another display of an output sorting panel with different permission levels provided in an embodiment of this application. For example... Figure 5b As shown in Figure (1), if the target permission level of the work's publishing object is the first level, all sorting entries displayed in this sorting panel are first sorting entries (such as sorting entries of the first type): first sorting entry 1, first sorting entry 2, first sorting entry 3; as shown in Figure (1), if the target permission level of the work's publishing object is the first level, then all sorting entries displayed in this sorting panel are first sorting entries (such as sorting entries of the first type): first sorting entry 1, first sorting entry 2, first sorting entry 3; Figure 5b As shown in Figure (2), if the target permission level of the published object is the second level, all sorting entries displayed in the sorting panel are second sorting entries (such as sorting entries of the second type): second sorting entry 1, second sorting entry 2, and second sorting entry 3. The first level and the second level are different. Therefore, the type of sorting entry provided in the sorting panel for published objects belonging to the second level is different from the type of sorting entry provided for published objects belonging to the first level. Under this implementation, the type of sorting entry in the output sorting panel corresponds to different permission levels, which means it supports personalized output of different types of sorting entries according to permission levels, and can also meet the flexible needs of different users for comment sorting.

[0183] Based on the above Figure 5a and Figure 5b The comparison shown illustrates that this application supports personalized output of different numbers or types of sorting entries according to different permission levels, thereby meeting the flexible needs of different users for comment sorting and improving the user experience of the sorting process.

[0184] In one possible implementation, the K sorting entries displayed in the sorting panel include: a first sorting entry (i.e., a sorting entry of type 1), a second sorting entry (i.e., a sorting entry of type 2), and a third sorting entry (i.e., a sorting entry of type 3). One sorting entry is used to trigger a sorting process on N comment data, specifically:

[0185] ① The first sorting entry is used to trigger the following sorting process: N comments are sorted according to the interactivity between the commenter and the publisher of the work. For example, interactivity can be represented by interaction parameters, which include at least one of the following: number of interactions, interaction time, and interaction frequency. Based on this, the first sorting entry triggers one or more of the following sorting methods: sorting N comments according to the number of interactions between the commenter and the publisher of the work; sorting N comments according to the interaction time between the commenter and the publisher of the work; and sorting N comments according to the interaction frequency between the commenter and the publisher of the work.

[0186] ② The second sorting entry is used to trigger the sorting of N comments according to their comment parameters. These parameters may include at least one of the following: comment time, number of interactive actions performed (e.g., number of likes). Based on this, the second sorting entry is used to trigger one or more of the following sorting methods: sorting the N comments according to their comment time; sorting the N comments according to the number of interactive actions performed on each of the N comments.

[0187] ③ The third sorting entry point is used to trigger the sorting of N comments based on the comment parameters and the interactivity between the commenter and the publisher. Therefore, the third sorting entry point triggers a comprehensive sorting of the N comments according to at least one sorting criterion; these criterions include, but are not limited to, any one or more of the following: comment time, number of interactions between the commenter and the publisher, interaction frequency, interaction time, interaction relationship, commenter activity level, and permission level.

[0188] In summary, the aforementioned first, second, and third sorting entry points are three different types of sorting entry points. For example, the first sorting entry point is a first-type sorting entry point, the second sorting entry point is a second-type sorting entry point, and the third sorting entry point is a third-type sorting entry point. Furthermore, these different types of sorting entry points are used to trigger different dimensions of comment sorting processing on N comment data. For example, the first sorting entry point sorts comments according to the interaction dimension between objects, the second sorting entry point sorts comments according to the comment data dimension, and the third sorting entry point sorts comments according to a comprehensive dimension (such as including multiple dimensions like interaction and comment data). In this embodiment, multiple sorting entry points are allowed in the sorting panel, supporting authors (i.e., the publishing objects of their works) to customize and select the corresponding sorting entry point for comment sorting, thus meeting the authors' needs for convenience and flexibility in comment management.

[0189] The following describes how the K sorting entries are displayed in the sorting panel:

[0190] In one possible implementation, the number of first sorting entries is K1, the number of second sorting entries is K2, and the number of third sorting entries is K3; K1, K2, and K3 are all positive integers, and K1 + K2 + K3 = K. It should be understood that different first sorting entries are used to trigger sorting of N comments according to different interaction parameters between the commenting object and the publishing object; for example, first sorting entry 1 can be used to trigger sorting of N comments according to different interaction parameters between the commenting object and the publishing object; and first sorting entry 2 can be used to trigger sorting of N comments according to different interaction times between the commenting object and the publishing object. Similarly, different second sorting entries are used to trigger sorting of N comments according to different comment parameters; for example, second sorting entry 1 can be used to trigger sorting of N comments according to comment time; and second sorting entry 2 can be used to trigger sorting of N comments according to the number of interaction operations performed on the comment data (such as the number of likes). The display method of the K sorting entries shown in the sorting panel includes any of the following:

[0191] (1) Randomly display K sorting entries.

[0192] (2) Sort and display the K sorting entries according to a preset priority; for example, the priority of different types of sorting entries can be set, such as the preset priority being: first sorting entry > second sorting entry > third sorting entry. Please refer to [link to relevant documentation]. Figure 6a , Figure 6a This is a schematic diagram of an interface for displaying multiple sorting entries according to an embodiment of this application. For example... Figure 6a As shown, according to the preset priority: first sorting entry > second sorting entry > third sorting entry: the sorting panel displays the following in sequence: first sorting entry 1, first sorting entry 2, second sorting entry 1, second sorting entry 2, and third sorting entry.

[0193] (3) Sort and display the K sorting entries according to the historical operation data performed by the publishing target of the work on the K sorting entries within a historical time period. For example, the system can record the historical operation data of the sorting entries selected by the user (such as the publishing target of the work) within a preset time period (such as within one month), thereby analyzing the frequency of the user's selection of each sorting entry, and sorting the K sorting entries in descending order of selection frequency. Please refer to [link to relevant documentation]. Figure 6b , Figure 6b This is a schematic diagram of another interface for displaying multiple sorting entries provided in an embodiment of this application. For example... Figure 6bAs shown, the sorting panel displays the following in descending order of selection frequency: Third sorting entry, First sorting entry 1, Second sorting entry 1, First sorting entry 2, and Second sorting entry 2.

[0194] Based on this, the embodiments of this application support displaying multiple different types of sorting entries (such as first sorting entry, second sorting entry, and third sorting entry) in the sorting panel, and support sorting and displaying these different types of sorting entries, which can improve the flexibility of the sorting entry display method in the sorting panel.

[0195] In one possible implementation, the N comment data associated with the work are displayed in the comment interface according to the recommended sorting method. Specifically, after displaying the comment interface of the work, the N comment data sorted according to the reference sorting method can also be displayed in the sorting interface; where (1) the reference sorting method is the sorting method triggered by any of the K sorting entries, that is, a sorting method can be randomly selected to display these N comment data; (2) the reference sorting method is the sorting method triggered by the sorting entry preset by the publishing object of the work among the K sorting entries, that is, the author (the publishing object of the work) can preset a sorting method to display these N comment data; (3) the reference sorting method is the sorting method triggered by the publishing object of the work selecting the sorting entry with the highest frequency among the K sorting entries, that is, the sorting method most frequently selected by the author (highest selection frequency) can be used as the recommended sorting to display these N comment data. In this implementation, before users sort the data themselves, N comments on a work can be displayed using a recommended sorting method. This allows users to customize the recommended sorting method or adapt it to their historical sorting operations, thus improving the adaptability of the recommended sorting method.

[0196] S203. In response to the trigger operation on the first sorting entry, display the comment sorting results.

[0197] The comment ranking results include: N ranked comment data obtained by sorting the N comment data according to the interactivity between the commenter and the publisher of the work.

[0198] Specifically, in response to: conditions or states on which the performed operation (such as a trigger operation on the first sorting entry) depends, when the dependent conditions or states are met, one or more operations can be performed in real time or with a set delay; unless otherwise specified, there is no restriction on the order in which the multiple operations are performed. For example, a user can first perform a first trigger operation (such as a click or long press) on the first sorting entry, then perform a second trigger operation on the second sorting entry, and further perform a third trigger operation on the third sorting entry. In this embodiment, in response to the trigger operation on the first sorting entry, the comment sorting results can be displayed in the comment interface.

[0199] In one possible implementation, the comment sorting results can be displayed in any of the following ways:

[0200] (1) The comments are sorted by the number of interactions between the commenter and the publisher of the work, from most to least. Please see [link to relevant documentation]. Figure 7a , Figure 7a This is a schematic diagram illustrating a flowchart for displaying comment sorting results provided in an embodiment of this application. For example... Figure 7a As shown, a comment interface S701 can display comments on a work. This comment interface S701 displays N comment data (e.g., 109 comment data) about the work, and these 109 comment data can be sorted and displayed according to a reference sorting method (e.g., a comprehensive sorting method). The comment interface S701 is equipped with a sorting control 7011. In response to the triggering of the sorting control 7011 (e.g., any triggering operation such as a single click, double click, or long press), a sorting panel 7021 is output in the comment interface S702. The sorting panel 7021 displays a first sorting entry (e.g., the sorting selection item corresponding to method 1). In response to the triggering of the first sorting entry, the comment sorting result is displayed in the comment interface S703. The comment sorting results displayed in the comment interface S703 (including the sorted 109 comment data) are sorted by the number of interactions between the comment object and the publishing object (author), from most to least. For example: User 3 interacts with the author 56 times > User 4 interacts with the author 43 times > User 2 interacts with the author 38 times > User 1 interacts with the author 25 times. Optionally, during the display of the comment sorting results, it is also possible to display the number of interactions between each comment object (such as User 1, User 2, User 3, and User 4 mentioned above) and the publishing object (author) in the comment interface (such as User 3 interacting with the author 56 times as shown in 7031), so that the author can intuitively view the number of interactions between themselves and different comment objects in the comment interface.

[0201] (2) The comment results are displayed in order of increasing and decreasing interaction time between the commenter and the publisher of the work. Please see [link to relevant documentation]. Figure 7b , Figure 7b This is a schematic diagram illustrating another process for displaying comment sorting results provided in an embodiment of this application. For example... Figure 7b As shown, the comment interface S701 displays the works. This interface S701 includes a sorting control 7011. In response to the triggering of the sorting control 7011 (e.g., a single click, double click, long press, or any other triggering operation), a sorting panel 7021 is output in the comment interface S702. This sorting panel 7021 displays a first sorting entry (such as the sorting selection option corresponding to method 1). In response to the triggering of the first sorting entry, the comment sorting results are displayed in the comment interface S704. The comment sorting results displayed in the comment interface S704 (including the sorted 109 comment data) are sorted according to the interaction time between the commenter and the publisher (author), from most recent to oldest. For example: the interaction time between user 1 and the author (as shown in 7041) < the interaction time between user 2 and the author < the interaction time between user 3 and the author < the interaction time between user 4 and the author. Optionally, during the display of comment sorting results, it is also possible to display the interaction time between each comment object (such as User 1, User 2, User 3, and User 4 mentioned above) and the publishing object (author) in the comment interface (e.g., the time when User 1 posted the comment data was 1 minute ago at the current moment), so that the author can intuitively view the interaction time between themselves and objects of different frequencies in the comment interface.

[0202] (3) The comment ranking results are displayed in descending order of the frequency of interaction between the commenter and the publisher of the work. Please see [link / reference]. Figure 7c , Figure 7c This is a schematic diagram illustrating another process for displaying comment sorting results provided in an embodiment of this application. For example... Figure 7cAs shown, a comment interface S701 can display the works. This interface S701 includes a sorting control 7011. When the sorting control 7011 is triggered, a sorting panel 7021 is output in the comment interface S702. This sorting panel 7021 displays a first sorting entry (such as the sorting selection option corresponding to method 1). When the first sorting entry is triggered, the comment sorting results are displayed in the comment interface S705. The comment sorting results displayed in the comment interface S705 are sorted from highest to lowest based on the interaction frequency between the commenter and the publisher (author). For example: interaction frequency between user 1 and author > interaction frequency between user 2 and author > interaction frequency between user 3 and author > interaction frequency between user 4 and author. Optionally, during the display of comment sorting results, it is supported to display interaction tags in the comment data of comment objects whose interaction frequency with the author is higher than a preset frequency threshold. The interaction tag is used to indicate the interaction frequency between the comment object and the author. For example, the interaction tag between user 1 and the author is "interacts with me frequently" (such as interaction tag 7051), and the interaction tag between user 2 and the author is "interacts with me relatively often". In this case, it is supported to display the frequency data with higher interaction frequency with the author first, so as to improve the efficiency and operation experience of the author's comment reply.

[0203] In one possible implementation, the comment sorting result includes N sorted comment data, and the N sorted frequency data are displayed in the comment interface in any of the following ways: (1) The N sorted comment data are displayed in a top-to-bottom manner, for example... Figure 7a As shown in the comment interface S703, the sorted N comment data are displayed sequentially from top to bottom in the comment interface. (2) The sorted N comment data are displayed from left to right. (3) The sorted N comment data are displayed in a surrounding display mode; wherein, the surrounding display mode includes any of the following: taking the comment data with the latest comment time as the center point and taking the other comment data in the N comment data except the center point as points on the circumference; taking the comment data with the most interactive operations as the center point and taking the other comment data in the N comment data except the center point as points on the circumference; taking the comment data with the highest interaction frequency as the center point and taking the other comment data in the N comment data except the center point as points on the circumference. Under this implementation mode, it is possible to provide a variety of display modes (such as sorted display or surrounding display) for the N comment data in the comment interface, thereby improving the flexibility of displaying comment data.

[0204] In one possible implementation, highlighting of a subset of comment data is supported. Specifically, M comments out of N sorted comments are highlighted, where M is a positive integer and M≤N. The M highlighted comments include any of the following: the commenter and the publisher of the work have an interactive relationship (i.e., the author and the commenter are mutually related); the commenter's permission level meets a preset permission level; or the commenter is among the top M comments in the N sorting order (i.e., the top M comments are highlighted). Furthermore, the highlighting method includes any one or more of the following: animation display, highlighting, color differentiation, and font differentiation. In other words, this embodiment supports highlighting comments from users mutually related to the author, or comments from users whose permission level meets a preset permission level, or the top M comments. This allows for the differentiation of some comment data (M comments) from other comment data (at least one comment other than the M comments out of N comments), satisfying the flexibility and personalization needs of comment display.

[0205] In one possible implementation, individual sorting of any single comment data is supported. Specifically, in response to a sorting operation on comment data i out of N comments, comment data i is moved to the target sorting position indicated by the sorting operation for display, where i is a positive integer and i ≤ N; the sorting operation includes any one of: drag operation, swipe operation, and reply operation; and the target sorting position is any one of: any position, top position, and preset position. Please see [link to relevant documentation]. Figure 8a , Figure 8a This is a schematic diagram of an interface for displaying comment data provided in an embodiment of this application. For example... Figure 8a As shown, N comment data are displayed in the comment interface S801. In response to the sorting operation (such as dragging from bottom to top) of comment data i (e.g., comment data of user 1) among the N comment data, the dragging process of comment data i is dynamically displayed in the comment interface S802. That is, the display position of comment data i in the comment interface changes dynamically as the user drags it. Until the dragging operation ends, comment data i is moved to the target sorting position indicated by the sorting operation for display. If the target sorting position indicated by the dragging operation is the top position, then comment data i (i.e., comment data of user 1) can be displayed at the top position in the comment interface S803, and the comment interface S803 is updated and displayed synchronously for other comment data (comment data of user 3, comment data of user 4, and comment data of user 2).

[0206] Optionally, comments that have been replied to by the author can be pinned to the top. See also Figure 8b , Figure 8b This is a schematic diagram of another interface for displaying comment data provided in an embodiment of this application. For example... Figure 8b As shown, N comment data are displayed in the comment interface S804. The author can select any comment data (such as comment data i) from the N comment data to reply. In response to the author's selection operation of comment data i (such as user 1's comment data) from the N comment data, a reply panel is output in the comment interface S805, which allows the author to enter the information to be replied to in the reply panel. In response to the reply operation detected in the reply panel (such as the author clicking the "send" button to trigger the reply operation), the comment data i to be replied to (i.e., user 1's comment data) is displayed at the top in the comment interface S806.

[0207] Based on this, Figure 8a and Figure 8b During the display of the comment data, this embodiment of the application supports individual sorting of any single comment. For example, it supports drag-and-drop sorting of any single comment, allowing authors to conveniently sort specific comments. Furthermore, comments replied to by authors can be pinned to the top, enabling other commenters to intuitively understand the interaction between the author and the commenter (e.g., reply status), thus improving the interactive effect of the comment data.

[0208] In one possible implementation, the comment data can be updated. Specifically, in response to a comment update event for a work, the N comment data are updated and displayed in the comment interface. The comment update event is generated in any of the following ways: (1) If an editing operation (such as an author's reply, deletion, or like operation) is detected on comment data i among the N comment data, a comment update event is generated; (2) If comment data i among the N comment data is detected to have expired, a comment update event is generated, where each comment data i has a valid duration (such as one month). If comment data i is not within the valid duration, then the comment data i has expired; (3) If new comment data for a work is received, a comment update event is generated. Based on this, the comment data in the comment interface can be updated in real time, thereby enabling real-time updates to the display position and content of the comment data in the comment interface according to different update situations, improving the effectiveness of the comment data display process.

[0209] In one possible implementation, it supports sharing any comment data with other social objects. Specifically, in response to a sharing operation on comment data i, a list of social objects is output, which includes at least one social object associated with the object where the work was published; in response to a selection operation on a target social object, comment data i and the work are shared with the target social object. Please see [link to relevant documentation]. Figure 9 , Figure 9 This is a schematic diagram of an interface for sharing comment data provided in an embodiment of this application. For example... Figure 9 As shown, multiple comment data (such as comment data of user 3, comment data of user 4, comment data of user 2, and comment data of user 1) are displayed in the comment interface S901. Any comment data i can be shared, for example, a sharing control is provided in the display area of ​​any comment data i (such as a sharing control 9011 in the display area of ​​user 1's comment data). In response to the triggering of the sharing control 9011, a list of social objects is output in the interface S902. This list of social objects includes at least one social object associated with the posting object (such as user A, user B, user C, and user D). In response to the selection operation for the target social object (such as user A), the comment data i (such as user 1's comment data) and the work (such as the link to the work) are displayed as conversation data 8021 in the social conversation page S903 between the author and the target social object (such as user A). Based on this, the comment data i and the work can be shared to the target social object. Subsequently, the target social object (such as user A) can view the comment content of the comment data or click the work link to view the work content. In this implementation, any comment data can be shared with other users, so that other users can easily view the shared comment data and work content, thereby improving the interactivity of the comment data.

[0210] In summary, the comment processing method provided in this application supports user (e.g., author) custom sorting. For example, the sorting entry points provided in the sorting panel include: a first sorting entry point (e.g., "Most Frequent Interactions with Me"), a second sorting entry point (e.g., "Latest"), and a third sorting entry point (e.g., "Most Likes and Replies"). Specific scenarios involving the above sorting methods are illustrated below.

[0211] Scenario 1: Sort by "most frequently interacting with me".

[0212] Please see Figure 10a , Figure 10a This is a schematic diagram illustrating a comment sorting scenario provided in an embodiment of this application. For example... Figure 10aAs shown, the comment interface S1001 displays a sorting panel, which includes: a first sorting entry (e.g., "Most Frequent Interactions with Me"), a second sorting entry (e.g., "Latest"), and a third sorting entry (e.g., "Most Likes and Replies"). In response to a trigger operation on the first sorting entry in the comment interface S1001, the comment sorting results are displayed in the comment interface S1002. These results are obtained by sorting N comment data according to the number of interactions between the poster and the commenter, from highest to lowest.

[0213] Scenario 2: Sort by "newest".

[0214] Please see Figure 10b , Figure 10b This is a schematic diagram illustrating another scenario for comment sorting provided in an embodiment of this application. For example... Figure 10b As shown, the comment interface S1003 displays a sorting panel, which includes: a first sorting entry (e.g., "most frequently interacted with me"), a second sorting entry (e.g., "newest"), and a third sorting entry (e.g., "most likes and replies"). In response to a trigger operation on the second sorting entry in the comment interface S1003, the comment sorting result is displayed in the comment interface S1004. This comment sorting result is obtained by sorting N comment data according to the comment time from most recent to oldest.

[0215] Scenario 3: Sort by "most likes and replies".

[0216] Please see Figure 10c , Figure 10c This is a schematic diagram illustrating another scenario for comment sorting provided in an embodiment of this application. For example... Figure 10c As shown, the comment interface S1005 displays a sorting panel, which includes: a first sorting entry (e.g., "Most Frequent Interactions"), a second sorting entry (e.g., "Latest"), and a third sorting entry (e.g., "Most Likes and Replies"). In response to a trigger operation on the third sorting entry in the comment interface S1005, the comment sorting result is displayed in the comment interface S1006. This comment sorting result is obtained by sorting N comment data according to the number of interaction operations (e.g., the total number of likes and replies) corresponding to the comment data, from most to least.

[0217] It should be understood that in real-world scenarios, users (such as authors) can customize and select appropriate sorting options to trigger comment sorting. Based on the sorting scenarios described above, an intuitive comment interface and preset sorting options (i.e., sorting entry points) can be provided. Users do not need to manually set complex sorting filters, making the sorting operation simpler and improving user efficiency.

[0218] In this embodiment, a comment interface for a work is displayed, showing N comment data entries, where N is an integer greater than 1. A first sorting entry is displayed in the comment interface, which triggers a sorting process for the N comment data entries based on the interactivity between the commenting object and the publishing object of the work. In response to the triggering operation of the first sorting entry, a comment sorting result is displayed, which includes the sorted N comment data entries obtained by sorting the N comment data entries based on the interactivity between the commenting object and the publishing object of the work. Therefore, this application supports directly displaying a sorting entry in the comment interface, improving the convenience of comment sorting. Simultaneously, supporting comment sorting based on the interactivity between the commenting object and the publishing object (author) helps authors filter out user comments with high interaction levels from a large amount of comment data for viewing and replying, enabling faster filtering of high-quality comment data and valuable interactive content, thereby improving the author's user experience and the efficiency of replying to comments.

[0219] The comment processing method provided in the embodiments of this application will be described in detail below from a technical perspective.

[0220] I. Architecture diagram for retrieving comment data from works.

[0221] Please see Figure 11 , Figure 11 This is a system architecture diagram for obtaining comment data from a work, provided in an embodiment of this application. For example... Figure 11 As shown in the diagram, the system architecture mainly includes the following three modules: client, proxy layer, and server. The functions and detailed structures of each module are described below:

[0222] (1) Client: Used to display the comment interface of the work and to interact with users (such as the person who posted the comment or the person who commented). For example, users can initiate a comment request through the client.

[0223] (2) Proxy layer: responsible for connecting the client and the server and ensuring that the client and the server can communicate normally, such as sending the client's comment retrieval request to the server.

[0224] (3) Server: Used to provide backend technical support for clients, which specifically includes: business logic Logicsvr layer, comment caching layer, comment recalculation asynchronous task layer, and work comment data storage KV layer.

[0225] ① Business Logic Logicvr layer: Provides a CGI (common gateway interface) for retrieving comments from works. For example, the CGI interface could be getCommentList.

[0226] ②Comment caching layer: Responsible for storing cached comment data for each work.

[0227] ③ Comment recalculation asynchronous task layer: used to retrieve comment data for works in real time.

[0228] ④ Data storage of work comments: KV layer: Each comment data of the work is stored in K(Key)-V(Value) format. The key can be the identifier of the comment object, and the value can be the comment parameters of the comment data. For example, the comment parameters include: comment time, number of interactive operations performed on the comment data (such as the number of likes).

[0229] Furthermore, the comment retrieval process is described below in conjunction with the system architecture described above: Users initiate a comment retrieval request through the client. This request is forwarded to the server-side business logic Logicsvr layer via a proxy layer. The Logicsvr layer is configured with a CGI function, getcommentlis, to retrieve comments from the work's comment interface. Optionally, upon receiving the comment retrieval request, the Logicsvr layer can perform an authorization check on the request object. If the request object is the work's publishing object, the authorization check passes; otherwise, it fails. After successful authorization, the layer checks the comment cache layer to see if cached comment data for the current work exists. If it does, the comment data is retrieved from the cache and returned to the client. If not, the asynchronous comment recalculation task layer is invoked to calculate the work's comment data in real time, and an asynchronous queue is started to update the cache.

[0230] Based on this, through Figure 11 The collaborative work between the various modules shown above ensures the normal operation of the comment processing flow, thereby improving the reliability of the comment processing process.

[0231] II. A timeline diagram of the comment data retrieved from the work.

[0232] Please see Figure 12 , Figure 12 This is a sequence diagram illustrating how to obtain comment data from a work, as provided in an embodiment of this application. For example... Figure 12 As shown, this timing diagram mainly includes the following steps S1-S9:

[0233] S1. The user initiates a comment retrieval request via the client's CGI tool.

[0234] S2. The CGI for fetching comments receives the comment retrieval request and determines whether the work whose comments need to be fetched is in the recommended experimental group (such as works in the preset experimental group). If it is in the recommended experimental group, then execute S3.

[0235] S3. The CGI for pulling comments sends a prepare request to the comment recommendation algorithm module.

[0236] S4. The comment recommendation algorithm module returns the cache_key and the expiration time for comment recommendation ranking. These two pieces of information are sent to the comment recommendation control module for subsequent logical processing.

[0237] S5. The comment recommendation control module uses the cache_key to query the comment recommendation storage to see if there is a corresponding cache.

[0238] S6. If there is a corresponding cache_key for a comment and the cache has not expired, then return the comment list data directly.

[0239] S7. If the comment recommendation storage module does not find a valid cache or the cache has expired, trigger step S8.

[0240] S8. The comment recommendation control module will calculate the latest comment list (N comment data) for the work in real time and start an asynchronous task to trigger the recommendation calculation.

[0241] S9. After the recommendation calculation results are available, store them in the cache.

[0242] In the above steps, since the asynchronous computation of the recommended comments task only needs to be started once to store the obtained comment data in the comment recommendation storage, if other users request the same list of comments again, the data can be directly retrieved from the comment recommendation storage and returned, which can save computing resources.

[0243] III. Flowchart for updating the comment data of the work.

[0244] Please see Figure 13 , Figure 13 This is a flowchart illustrating the update process of comment data for a work, as provided in an embodiment of this application. Figure 13 As shown, the update process mainly includes the following steps S01-S06:

[0245] S01. The client sends new comment data to the comment writing CGI.

[0246] S02, Write Comment: The CGI will synchronize the newly added comment data to the comment metadata storage (KV).

[0247] S03. The CGI function writes comments and sends the new comment data to the review module for security review.

[0248] S04. The security audit module will send a callback of the audit results.

[0249] S05. The security audit callback triggers an incremental update in the comment MQ (message queue).

[0250] S06. If the preset conditions are met, the logic for recalculating all comments will be triggered.

[0251] The above steps enable real-time updates of comment data (incremental or full updates) to better meet users' real-time needs for viewing comment data.

[0252] IV. Key technical aspects involved in the comment processing process.

[0253] (1) Maintain the comment cache key list:

[0254] Cache structure: Each feed (i.e., work) maintains a list of comment cache keys, and each list item contains a cache_key and a corresponding comment_req (at least one comment data).

[0255] Maintenance method: When a comment retrieval request (referred to as a write request) is received, the list of comment cache keys for the feed indicated by the request is read. The list of comment cache keys is iterated through, and the logical lifetime (e.g., 1 day) of each item (comment data) is checked. If it has expired, the corresponding comment data is deleted.<comment_req,cache_key> If the pair does not exist, insert a new item. Optionally, if the comment cache key list is updated, update the comment cache key list (updates are infrequent and have almost no impact on read request time).

[0256] (2) Recalculate cache groups when comments are updated:

[0257] Event Summary: Identify events that may cause changes to the homepage comment list, and sort them by the magnitude of their impact as follows: Comment likes (peak 150,000 / min) pass security review / Comment visibility changes due to review (peak 50,000 / min) / Comment author or feed author deletes comment (negligible magnitude) / Comments that fail security review cannot be featured (negligible magnitude) / Author pins comments (negligible magnitude).

[0258] Asynchronous tasks: When the above events occur, an asynchronous update task is enqueued. Its basic process includes: reading the feed's comment cache key list, and for each item, recalculating the comment list according to item.comment_req and updating the cache.

[0259] (3) Hotspot feed high-concurrency recalculation processing:

[0260] Aggregation principle: Ensure that only one recalculation task is running for the same feed at any given time.

[0261] Task processing: A global mutex (mutex lock, where only one thread can hold the mutex lock at any given time) is implemented using TTLKV (Time to Live KV, a storage repository with a time-to-live feature). Therefore, the mutex ensures that only one recalculation task exists for the same feed at any given time. The deduplicated tasks are temporarily stored in the retry queue of the message queue (mq) to ensure that the comment data is not lost or updated. When dequeuing, the enqueue time of the request is checked, and outdated requests are no longer processed, thereby achieving aggregation.

[0262] (4) Optimize recommendation ranking:

[0263] Real-time recall: Optimizing the recommendation ranking requested by the comment retrieval request into real-time recall of comment data and reading of comment features can improve the timeliness of comment ranking.

[0264] Timeliness optimization: The delay in comment recommendation sorting has been optimized from 10 minutes to near real-time.

[0265] Cost optimization: Comment optimization through comment feature - indicator memory, is expected to reduce resource consumption by approximately 50,000 cores.

[0266] (5) Cache lifecycle management:

[0267] Expiration policy: To avoid missed updates and dirty data, the cache is set with an expiration time (e.g., 24 hours).

[0268] Logical expiration: The cache does not physically expire, only logically expires. Read requests that hit the expired cache will still return cached data and asynchronously trigger the recalculation of the single cache key.

[0269] By addressing the key points mentioned in (1)-(5) above, we can effectively manage cached comment data, optimize the efficiency of comment updates and recommendation sorting, and ensure the accuracy and timeliness of the data.

[0270] V. Comment processing flow executed on the server side.

[0271] Please see Figure 14 , Figure 14 This is a schematic flowchart of another comment processing method provided in an embodiment of this application. The comment processing method can be performed by a computer device (such as...) Figure 1a The server shown will execute the command; as follows: Figure 14 As shown, the comment processing method includes, but is not limited to, the following steps S1401-S1403:

[0272] S1401, Receive a comment sorting request sent by the client.

[0273] Specifically, the client is used to display the first sorting entry in the comment interface of the work. The comment interface displays N comment data. The comment sorting request is initiated after the first sorting entry is detected to be triggered. The first sorting entry is used to trigger the sorting of the N comment data according to the interactivity between the comment object and the publishing object of the work, where N is an integer greater than 1.

[0274] In one possible implementation, after receiving a comment sorting request from a client, the server can also obtain the client's identifier and verify the client according to the identifier. This verification includes at least one of: permission verification, security verification, and legality verification. If the client verification passes, the server responds to the comment sorting request and triggers the execution of subsequent step S1402; otherwise, if the client's permission verification fails, the comment sorting request is deleted. This approach improves the security and reliability of interactions between the client and the server.

[0275] S1402. Based on the comment sorting request, sort the N comment data according to the interactivity between the comment object and the publishing object of the published work to obtain the comment sorting result.

[0276] In one possible implementation, the server sorts N comments based on the comment sorting request, according to the interactivity between the comment object and the publishing object of the published work, to obtain the comment sorting result, including the following steps (1)-(3):

[0277] (1) The comment sorting request is parsed to obtain the parsing result, which includes the work identifier and the sorting method. The sorting method indicates that the N comments are sorted according to the interactivity between the commenter and the publisher of the work. For example, the sorting method is identified by the identifier of the first sorting entry (such as name or ID).

[0278] (2) Obtain N comment data related to the work based on the work identifier. Specifically, N comment data related to the current work can be obtained from the work comment data storage KV module according to the work identifier; or, N comment data related to the work can be conveniently obtained directly from the comment cache layer according to the work identifier.

[0279] (3) Obtain the interaction parameters between the commenters who posted the comments and the publishers of the published works based on the sorting method, and sort the N comments based on the interaction parameters to obtain the comment ranking result. The interaction parameters here include, but are not limited to, any one or more of the following: number of interactions, interaction time, and interaction frequency. For example, sort the N comments according to the number of interactions between the commenters who posted the comments and the publishers of the published works, from most to least; or sort the N comments according to the interaction time between the commenters who posted the comments and the publishers of the published works, from most recent to oldest; or sort the N comments according to the interaction frequency between the commenters who posted the comments and the publishers of the published works, from highest to lowest.

[0280] In the above implementation, it is possible to perform real-time calculation and sorting of N comments on a work according to the comment sorting method requested by the client (such as sorting based on the interactivity between the publishing object and the commenting object), which can improve the reliability and accuracy of the comment sorting results.

[0281] In another possible implementation, the server sorts N comments based on the comment sorting request, according to the interactivity between the comment object and the publishing object of the published work, and obtains the comment sorting result, including the following steps (1)-(3):

[0282] (1) Obtain the cached comment data in the comment cache layer. The cached comment data includes multiple work identifiers and a list of comment caches associated with each work identifier (such as the comment cache key list mentioned above). The comment cache list includes at least one sorted and processed comment data, and the comment data has a valid duration (such as 24 hours).

[0283] (2) Based on the work identifier, perform data query processing from the comment cache data to obtain the query results of the work, which includes the comment cache list of the work (such as N comment data).

[0284] (3) If the query result indicates that the comment data in the comment cache list of a work is within the valid duration, then the comment ranking result of the work is obtained based on the comment cache list of the work. For example, the query result can be directly used as the comment ranking result of the work; or, the query result can be optimized (such as data review, update sorting, etc.) and used as the comment ranking result of the work.

[0285] The above implementation supports directly querying the cached comment list from the comment caching layer, eliminating the need for real-time calculation of the comment list and improving the convenience and efficiency of comment data requests.

[0286] S1403. Return the comment sorting results to the client so that the comment sorting results can be displayed in the client.

[0287] In one possible implementation, the server can directly return the comment ranking results to the client; alternatively, the server can encrypt the comment ranking results and return the encrypted results to the client, which can improve the security of the data interaction process.

[0288] In summary, this application provides a solution that allows authors to independently sort comments. On one hand, by sorting comments, authors can more quickly find high-quality comments and valuable interactive content, improving the user experience and efficiency on the platform. On the other hand, authors can more easily use platform functions, improving creation and interaction efficiency, reducing operational complexity, and increasing response enthusiasm. Furthermore, it provides an intuitive user interface and preset sorting entry points, eliminating the need for users to manually set complex filtering conditions, making operation simpler and improving user efficiency. Moreover, this solution also supports uninterrupted playback of works (such as video playback) and viewing of comments, while allowing for quick switching of sorting options, enhancing the user's interactive experience in the comment interface.

[0289] The following describes the relevant apparatus of the comment processing scheme provided in the embodiments of this application.

[0290] It should be noted that, in the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program with a predetermined function, which works together with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0291] Please see Figure 15 , Figure 15 This is a schematic diagram of a comment processing apparatus provided in an embodiment of this application. The comment processing apparatus 1500 can be used to perform the functions described in this application. Figure 2 The corresponding steps in the comment processing method provided in the embodiment. Specifically, the comment processing device 1500 may include:

[0292] Display unit 1501 is used to display the comment interface of the work. The comment interface displays N comment data, where N is an integer greater than 1.

[0293] The display unit 1501 is also used to display the first sorting entry in the comment interface. The first sorting entry is used to trigger: sorting N comment data according to the interactivity between the comment object and the publishing object of the published work.

[0294] The processing unit 1502 is used to display the comment sorting results in response to the trigger operation of the first sorting entry. The comment sorting results include: N sorted comment data obtained by sorting N comment data according to the interactivity between the comment object and the publishing object of the published work.

[0295] In one possible implementation, display unit 1501 displays the first sorting entry in the comment interface for performing the following operations:

[0296] When the number of comments N reaches a preset threshold, the first sorting entry is displayed on the comment interface; or,

[0297] If the comment interface is detected as the comment interface of the work's publisher, then the first sorting entry will be displayed in the comment interface; or,

[0298] Display N comments in the comment interface, and simultaneously display the first sorting entry in the comment interface; or,

[0299] In response to a sorting trigger event detected in the comment interface, a sorting panel is output in the comment interface, and the first sorting entry is displayed in the sorting panel; wherein the display relationship between the sorting panel and the comment interface includes any one of the following: floating display, overlay display, and window display.

[0300] In one possible implementation, a sorting control is set in the comment interface; if the sorting control is triggered, a sorting trigger event is generated; or...

[0301] The comment interface has a sorting operation area. If a specified operation is detected in the sorting operation area, a sorting trigger event is generated. The specified operation includes any one of the following: single click, double click, long press, or preset gesture operation.

[0302] In one possible implementation, the processing unit 1502 is further configured to perform the following operations:

[0303] The sorting panel displays K sorting entries, which are either preset by the system or preset by the publishing entity of the work; or...

[0304] Obtain the target permission level of the object to which the work is to be published, and display K sorting entries in the sorting panel that match the target permission level of the object to be published; different permission levels are used to match different sorting entries;

[0305] The first sorting entry refers to any one of the K sorting entries.

[0306] In one possible implementation, the K sorting entry points include: a first sorting entry point, a second sorting entry point, and a third sorting entry point. The second sorting entry point triggers the sorting of N comments based on their comment parameters. The third sorting entry point triggers the sorting of N comments based on their comment parameters and the interactivity between the commenter and the publisher. The number of first sorting entry points is K1, the number of second sorting entry points is K2, and the number of third sorting entry points is K3. K1, K2, and K3 are all positive integers, and K1 + K2 + K3 = K. The K sorting entry points can be displayed in any of the following ways:

[0307] Randomly display K sorting entries;

[0308] Sorting and displaying the K sorting entries according to preset priority;

[0309] Based on the historical operation data performed on the K sorting entries by the publishing objects of the works within the historical time period, the K sorting entries are sorted and displayed.

[0310] In one possible implementation, a comment data entry includes comment content generated by a comment object performing a comment operation on a work, and interaction data generated by at least one interactive object performing an interactive operation on the comment content; wherein...

[0311] The first sorting entry is used to trigger any one or more of the following sorting methods: sorting N comments according to the number of interactions between the commenter and the publisher of the work; sorting N comments according to the interaction time between the commenter and the publisher of the work; sorting N comments according to the interaction frequency between the commenter and the publisher of the work.

[0312] The second sorting entry is used to trigger one or more of the following sorting methods: sorting the N comments according to their comment time; sorting the N comments according to the number of interactive operations performed on each of the N comments.

[0313] The third sorting entry is used to trigger: to perform comprehensive sorting processing on N comment data according to at least one sorting criterion; the sorting criterion includes any one or more of the following: comment time, number of interaction operations between the comment object and the posting object, interaction frequency, interaction time, interaction relationship, activity level of the comment object, and permission level.

[0314] In one possible implementation, after displaying the comment interface for the work, the processing unit 1502 is further configured to perform the following operations:

[0315] The sorting interface displays N comments sorted according to the reference sorting method.

[0316] Wherein, the reference sorting method is the sorting method triggered by any of the K sorting entries; or,

[0317] The reference sorting method is the sorting method triggered by the sorting entry preset by the publishing object of the work among the K sorting entries; or,

[0318] The reference sorting method is the sorting method triggered by the publishing object of the work selecting the most frequent sorting entry from K sorting entries.

[0319] In one possible implementation, display unit 1501 displays the comment sorting results and performs the following operations:

[0320] The comments are sorted by the number of interactions between the commenter and the publisher of the work, from most to least; or,

[0321] The comments are sorted by the interaction time between the commenter and the publisher of the work, from most recent to oldest; or,

[0322] The comments are sorted from highest to lowest based on the frequency of interaction between the commenters and the publishers of the published works.

[0323] The comment sorting result includes N sorted comment data.

[0324] In one possible implementation, the processing unit 1502 is further configured to perform the following operations:

[0325] Display the sorted N comments in a top-to-bottom order; or,

[0326] Display the sorted N comments from left to right; or,

[0327] The sorted N comments are displayed in a circular display manner, which includes any of the following: using the comment with the latest comment time as the center point and the other comments in the N comments (excluding the center point) as points on the circumference; using the comment with the most interactive actions as the center point and the other comments in the N comments (excluding the center point) as points on the circumference; or using the comment with the highest interaction frequency as the center point and the other comments in the N comments (excluding the center point) as points on the circumference.

[0328] In one possible implementation, the processing unit 1502 is further configured to perform the following operations:

[0329] M comments out of the N sorted comments are highlighted; M is a positive integer and M≤N; the M highlighted comments include any of the following: the comment object has an interactive relationship with the object that published the work, the comment object's permission level meets the preset permission level, or it is in the first M sorting order out of the N sorting orders;

[0330] Highlighting methods include any one or more of the following: animated display, highlighting, color differentiation display, and font differentiation display.

[0331] In one possible implementation, the processing unit 1502 is further configured to perform the following operations:

[0332] In response to a sorting operation on comment data i among N comment data, move comment data i to the target sorting position indicated by the sorting operation for display; i is a positive integer and i≤N;

[0333] The sorting operation includes any one of the following: drag operation, slide operation, and reply operation; and the target sorting position is any one of the following: any position, top position, and preset position.

[0334] In one possible implementation, the processing unit 1502 is further configured to perform the following operations:

[0335] In response to a comment update event for a work, update the display of N comment data in the comment interface; the comment update event can be generated in any of the following ways:

[0336] If an edit operation is detected on comment data i out of N comment data, a comment update event is generated; or,

[0337] If comment data i out of N comments is detected to have expired, a comment update event is generated; or,

[0338] If new comment data for a work is received, a comment update event is generated.

[0339] In one possible implementation, the processing unit 1502 is further configured to perform the following operations:

[0340] In response to a sharing operation on comment data i, output a list of social objects, which includes at least one social object associated with the object that published the work;

[0341] In response to a selection action targeting a specific social media user, the comment data i and the associated artwork are shared with that user.

[0342] This application provides a solution to support authors in sorting comments, which can improve the author's user experience and comment reply efficiency. On one hand, it supports displaying a sorting entry point directly in the comment interface, allowing for convenient comment sorting by triggering this entry point, thus improving the ease of sorting. On the other hand, it supports sorting comments based on the interaction between the commenter and the publisher (author), enabling authors to filter out user comments with high levels of interaction from a large volume of comment data for viewing and replying. This allows for faster filtering of high-quality comment data and valuable interactive content, thereby improving the author's user experience and efficiency in replying to comments.

[0343] Please see Figure 16 , Figure 16 This is a schematic diagram of another comment processing apparatus provided in an embodiment of this application. The comment processing apparatus 1600 can be used to perform the functions described in this application. Figure 14 The corresponding steps in the comment processing method provided in the embodiment. Specifically, the comment processing device 1600 may include:

[0344] The receiving unit 1601 is used to receive a comment sorting request sent by a client. The client is used to display a first sorting entry in the comment interface of the work. The comment interface displays N comment data. The comment sorting request is initiated after the first sorting entry is detected to be triggered. The first sorting entry is used to trigger: sorting the N comment data according to the interactivity between the comment object and the publishing object of the work, where N is an integer greater than 1.

[0345] Processing unit 1602 is used to sort N comments based on the comment sorting request and according to the interactivity between the comment object and the publishing object of the published work to obtain the comment sorting result;

[0346] Sending unit 1603 is used to return the comment sorting results to the client so that the comment sorting results can be displayed on the client.

[0347] In one possible implementation, processing unit 1602, based on the comment sorting request, sorts N comment data according to the interactivity between the comment object and the publishing object of the published work to obtain the comment sorting result, which is then used to perform the following operations:

[0348] The comment sorting request is parsed to obtain the parsing result, which includes the work identifier and sorting method. The sorting method indicates that the N comments are sorted according to the interactivity between the commenter and the publisher of the work.

[0349] Obtain N comment data related to the work based on the work's identifier;

[0350] The interaction parameters between the comment object and the publishing object of the work are obtained based on the sorting method, and the N comment data are sorted based on the interaction parameters to obtain the comment sorting result.

[0351] In one possible implementation, the processing unit 1602 is further configured to perform the following operations:

[0352] Retrieve comment cache data, which includes multiple work identifiers and a list of comment caches associated with each work identifier. The comment cache list includes at least one sorted and processed comment, and the comment data has a valid duration.

[0353] Based on the work's identifier, a data query is performed from the comment cache data to obtain the query results for the work; the query results include a list of the work's comment cache.

[0354] If the query result indicates that the comment data in the work's comment cache list is within the valid duration, then the comment ranking result of the work is obtained based on the work's comment cache list.

[0355] In one possible implementation, after receiving the comment sorting request sent by the client, the processing unit 1602 is further configured to perform the following operations:

[0356] Obtain the client's identifier and verify the client according to the client's identifier. The verification includes at least one of the following: permission verification, security verification, and legality verification.

[0357] If the client verification passes, a comment sorting request is responded to, and the following steps are triggered: based on the comment sorting request, the N comment data are sorted according to the interactivity between the comment object and the publishing object of the published work to obtain the comment sorting result;

[0358] If the client's permission verification fails, the comment sorting request will be deleted.

[0359] In this embodiment, the sorting entry can be displayed directly in the comment interface, which can improve the convenience of comment sorting. At the same time, it can sort comments according to the interaction between the comment object and the publishing object (author), which helps authors to filter out user comments with a high degree of interaction with themselves from a large amount of comment data for viewing and replying. It can more quickly filter out high-quality comment data and valuable interactive content, thereby improving the author's operating experience and the efficiency of replying to comments.

[0360] Please see Figure 17 , Figure 17 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. The computer device 1700 is used to execute the steps performed by the computer device in the aforementioned method embodiments. The computer device 1700 may include one or more devices (such as servers, nodes, terminal devices, etc.) or internal components (such as chips, software modules, or hardware modules). The computer device may include at least one processor 1701 and a communication interface 1702. Further optionally, the computer device may also include at least one memory 1703 and a bus 1704. Additionally, the processor 1701, communication interface 1702, and memory 1703 are connected via the bus 1704.

[0361] (1) The processor 1701 is a module that performs arithmetic and / or logical operations. Specifically, it may be one or a combination of processing modules such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor unit (MPU), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a complex programmable logic device (CPLD), a coprocessor (to assist the central processing unit in completing corresponding processing and applications), and a micro controller unit (MCU).

[0362] (2) Communication interface 1702 can be used to provide information input or output to at least one processor 1701. And / or, communication interface 1702 can be used to receive data sent externally and / or send data externally, and can be a wired link interface including such as an Ethernet cable, or a wireless link interface (Wi-Fi, Bluetooth, general wireless transmission, vehicle short-range communication technology, and other short-range wireless communication technologies, etc.). Communication interface 1702 can serve as a network interface.

[0363] (3) The memory 1703 is used to provide storage space, in which data such as the operating system and computer programs (including program instructions) can be stored. The memory 1703 can be one or a combination of random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or compact disc read-only memory (CD-ROM), etc.

[0364] In specific implementation, the processor 1701 runs the computer program stored in the memory 1703 to cause the computer device to execute the method steps in the foregoing embodiments of this application; in addition, the effects achieved by the computer device after the processor executes the method steps in the various embodiments can be referred to the description of the foregoing embodiments, and will not be repeated here.

[0365] According to one aspect of this application, embodiments of this application also provide a computer-readable storage medium storing a computer program. When a processor executes the computer program, it can perform the methods described in the preceding embodiments; therefore, further details will not be repeated here. For technical details not disclosed in the embodiments of the computer-readable storage medium involved in this application, please refer to the description of the method embodiments of this application. As an example, the computer program can be deployed on a computer device, or executed on multiple computer devices located in one location, or executed on multiple computer devices distributed in multiple locations and interconnected through a communication network.

[0366] According to one aspect of this application, embodiments of this application also provide a computer program product, which includes a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, enabling the computer device to perform the methods described in the foregoing embodiments; therefore, further details will not be repeated here. For technical details not disclosed in the embodiments of the computer program product involved in this application, please refer to the description of the method embodiments of this application.

[0367] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially as a computer program product, which includes one or more computer programs. When the computer program is loaded and executed on a computer device, it generates, in whole or in part, the processes or functions described in the embodiments of this application; the computer device can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer program can be stored in or transmitted through a computer-readable storage medium; the computer program can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium accessible to the computer device or a data processing device such as a server or data center that integrates one or more available media; wherein, the available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0368] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.

Claims

1. A comment processing method, characterized in that, include: The comment interface for the work is displayed, and the comment interface displays N comment data, where N is an integer greater than 1; The comment interface displays a first sorting entry, which is used to trigger the sorting of the N comment data according to the interactivity between the comment object that posted the comment data and the publishing object that published the work. In response to the trigger operation of the first sorting entry, the comment sorting result is displayed. The comment sorting result includes: N sorted comment data obtained by sorting the N comment data according to the interactivity between the comment object that published the comment data and the publishing object that published the work.

2. The method as described in claim 1, characterized in that, The display of the first sorting entry in the comment interface includes: When the number N of the comment data is detected to reach a preset threshold, the first sorting entry is displayed on the comment interface; or... If the comment interface is detected to be the comment interface of the object that published the work, then the first sorting entry is displayed in the comment interface; or, The N comment data are displayed in the comment interface, and the first sorting entry is displayed synchronously in the comment interface; or, In response to a sorting trigger event detected in the comment interface, a sorting panel is output in the comment interface, and the first sorting entry is displayed in the sorting panel; wherein, the display relationship between the sorting panel and the comment interface includes any one of: floating display, overlay display, and window display.

3. The method as described in claim 2, characterized in that, The comment interface includes a sorting control; if the sorting control is triggered, a sorting trigger event is generated; or... The comment interface has a sorting operation area. If a specified operation is detected in the sorting operation area, the sorting trigger event is generated. The specified operation includes any one of the following: single-click operation, double-click operation, long-press operation, and preset gesture operation.

4. The method as described in claim 3, characterized in that, The method further includes: The sorting panel displays K sorting entries, which are preset by the system for the work, or preset by the publishing object of the work; or... Obtain the target permission level of the object to which the work is to be published, and display K sorting entries in the sorting panel that match the target permission level of the object to be published; different permission levels are used to match different sorting entries; The first sorting entry refers to any one of the K sorting entries.

5. The method as described in claim 4, characterized in that, The K sorting entry points include: a first sorting entry point, a second sorting entry point, and a third sorting entry point. The second sorting entry point triggers sorting of the N comments according to their comment parameters. The third sorting entry point triggers sorting of the N comments according to their comment parameters and the interaction between the commenter who posted the comments and the publisher who posted the work. The number of first sorting entry points is K1, the number of second sorting entry points is K2, and the number of third sorting entry points is K3. K1, K2, and K3 are all positive integers, and K1 + K2 + K3 = K. The K sorting entry points are displayed in any of the following ways: The K sorting entries are displayed randomly; The K sorting entries are sorted and displayed according to a preset priority. The K sorting entries are sorted and displayed according to the historical operation data performed by the publishing objects of the works on the K sorting entries within the historical time period.

6. The method as described in claim 5, characterized in that, A single comment data entry comprises the comment content generated by a commenting object performing a commenting operation on the work, and the interaction data generated by at least one interactive object performing an interactive operation on the comment content; wherein, The first sorting entry is used to trigger any one or more of the following sorting methods: sorting the N comment data according to the number of interactions between the commenter who posted the comment data and the publisher who posted the work; sorting the N comment data according to the interaction time between the commenter who posted the comment data and the publisher who posted the work; sorting the N comment data according to the interaction frequency between the commenter who posted the comment data and the publisher who posted the work. The second sorting entry is used to trigger any one or more of the following sorting methods: sorting the N comment data according to the comment time of the N comment data; sorting the N comment data according to the number of interactive operations performed on each of the N comment data; The third sorting entry is used to trigger: performing comprehensive sorting processing on the N comment data according to at least one sorting criterion; the sorting criterion includes any one or more of the following: comment time, number of interaction operations between the comment object and the posting object, interaction frequency, interaction time, interaction relationship, activity level of the comment object, and permission level.

7. The method as described in claim 6, characterized in that, Following the comment interface for the displayed work, the system also includes: The sorting interface displays N comments sorted according to a reference sorting method. Wherein, the reference sorting processing method is the sorting processing method triggered by any one of the K sorting entries; or, The reference sorting method is the sorting method triggered by the sorting entry preset by the publishing object of the work among the K sorting entries; or, The reference sorting method is the sorting method triggered by the publishing object of the work selecting the sorting entry with the highest frequency among the K sorting entries.

8. The method as described in claim 1, characterized in that, The displayed comment sorting results include: The comments are sorted by the number of interactions between the commenter who posted the comments and the publisher who posted the work, from most to least; or, The comments are sorted in ascending order of the interaction time between the commenter who posted the comments and the publisher of the work; or, The comments are sorted from highest to lowest based on the frequency of interaction between the commenter who posted the comments and the publisher who posted the work. The comment sorting result includes N sorted comment data.

9. The method as described in claim 8, characterized in that, The method further includes: Display the sorted N comments in a top-to-bottom order; or, Display the sorted N comments from left to right; or, The N sorted comments are displayed in a circular display manner, which includes any of the following: using the comment with the latest comment time as the center point and the other comments in the N comments (excluding the center point) as points on the circumference; using the comment with the most interactive operations as the center point and the other comments in the N comments (excluding the center point) as points on the circumference; or using the comment with the highest interaction frequency as the center point and the other comments in the N comments (excluding the center point) as points on the circumference.

10. The method as described in claim 9, characterized in that, The method further includes: M comments out of the sorted N comments are highlighted; M is a positive integer and M≤N; wherein the M highlighted comments include any of the following: the comment object has an interactive relationship with the object that published the work, the comment object's permission level meets the preset permission level, or it is in the first M sorting order out of the N sorting orders; The highlighting methods include any one or more of the following: animated display, highlighting display, color differentiation display, and font differentiation display.

11. The method as described in claim 1, characterized in that, The method further includes: In response to a sorting operation on comment data i among the N comment data, comment data i is moved to the target sorting position indicated by the sorting operation for display; i is a positive integer and i≤N; The sorting operation includes any one of the following: drag operation, slide operation, and reply operation; and the target sorting position is any one of the following: any position, top position, and preset position.

12. The method as described in claim 11, characterized in that, The method further includes: In response to a comment update event for the work, the N comment data are updated and displayed in the comment interface; wherein the comment update event is generated in any of the following ways: If an edit operation is detected on comment data i in the N comment data, then the comment update event is generated; or, If comment data i among the N comment data is detected to have expired, then the comment update event is generated; or, If new comment data for the work is received, the comment update event is generated.

13. The method as described in claim 12, characterized in that, The method further includes: In response to a sharing operation for the comment data i, a list of social objects is output, the list of social objects including at least one social object associated with the object that published the work; In response to a selection operation targeting a social media user, the comment data i and the work are associated and shared with the target social media user.

14. A comment processing method, characterized in that, include: The system receives a comment sorting request from a client, which displays a first sorting entry in the comment interface of a work. The comment interface displays N comment data. The comment sorting request is initiated after the first sorting entry is detected to be triggered. The first sorting entry is used to trigger the sorting of the N comment data according to the interaction between the commenter who posted the comment data and the publisher who posted the work, where N is an integer greater than 1. Based on the comment sorting request, the N comment data are sorted according to the interaction between the comment object that published the comment data and the publishing object that published the work to obtain the comment sorting result; The comment sorting results are returned to the client so that they are displayed in the client.

15. The method as described in claim 14, characterized in that, The step of sorting the N comments based on the comment sorting request, according to the interaction between the commenter who posted the comment data and the publisher who published the work, to obtain the comment sorting result includes: The comment sorting request is parsed to obtain a parsing result, which includes the work identifier and sorting method. The sorting method indicates that the N comment data are sorted according to the interaction between the commenter who posted the comment data and the publisher who posted the work. Based on the work identifier, obtain N comment data related to the work; Based on the sorting method, the interaction parameters between the comment object that published the comment data and the publishing object that published the work are obtained, and the N comment data are sorted based on the interaction parameters to obtain the comment sorting result.

16. The method as described in claim 15, characterized in that, The method further includes: Obtain comment cache data, which includes multiple work identifiers and a comment cache list associated with each work identifier. The comment cache list includes at least one sorted and processed comment data, and the comment data has a valid duration. Based on the work identifier, a data query process is performed from the comment cache data to obtain the query results for the work; the query results include the comment cache list for the work; If the query result indicates that the comment data in the comment cache list of the work is within the valid duration, then the comment ranking result of the work is obtained based on the comment cache list of the work.

17. The method according to any one of claims 14-16, characterized in that, After receiving the comment sorting request sent by the client, the method further includes: Obtain the client's identifier and verify the client according to the client's identifier. The verification includes at least one of the following: permission verification, security verification, and legality verification. If the client verification passes, then in response to the comment sorting request, the step of sorting the N comment data according to the interaction between the comment object that published the comment data and the publishing object that published the work is triggered to obtain the comment sorting result based on the comment sorting request; If the client's permission verification fails, the comment sorting request is deleted.

18. A comment processing device, characterized in that, include: The display unit is used to display the comment interface of the work, wherein the comment interface displays N comment data, where N is an integer greater than 1; The display unit is also used to display a first sorting entry in the comment interface. The first sorting entry is used to trigger: sorting the N comment data according to the interactivity between the comment object that published the comment data and the publishing object that published the work. The processing unit is configured to display the comment sorting result in response to the triggering operation of the first sorting entry. The comment sorting result includes: sorted N comment data obtained by sorting the N comment data according to the interactivity between the comment object that published the comment data and the publishing object that published the work.

19. A comment processing device, characterized in that, include: A receiving unit is used to receive a comment sorting request sent by a client. The client is used to display a first sorting entry in the comment interface of a work. The comment interface displays N comment data. The comment sorting request is initiated after the first sorting entry is detected to be triggered. The first sorting entry is used to trigger: sorting the N comment data according to the interaction between the comment object that posted the comment data and the publishing object that published the work, where N is an integer greater than 1. The processing unit is configured to sort the N comment data according to the interaction between the comment object that published the comment data and the publishing object that published the work, based on the comment sorting request, to obtain the comment sorting result; A sending unit is configured to return the comment sorting results to the client so that the comment sorting results are displayed in the client.

20. A computer device, characterized in that, include: Memory and processor; A memory, wherein one or more computer programs are stored; A processor for loading one or more computer programs to implement the comment processing method as described in any one of claims 1-13 or 14-17.

21. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted to be loaded by a processor and to execute the comment processing method as described in any one of claims 1-13 or 14-17.

22. A computer program product, characterized in that, The computer program product includes a computer program adapted to be loaded by a processor and to execute the comment processing method as described in any one of claims 1-13 or 14-17.