摘要:
A system and method for per-client, per-type customizations to posts in an activity stream comprises an extraction pipeline and a rendering pipeline. The extraction pipeline can include a library of embedded code, data type taxonomy and an embed converter. The data type taxonomy is coupled to an activity source to receive activity information, and to produce a first protocol buffer. The embed converter produces a type-specific protocol buffer from the first protocol buffer and embedded code based in part upon the type of activity and the type of client. The type-specific protocol buffer is provided to the client to process activity information or present activity information. The disclosure also includes a method for processing a post in an activity stream on a per-client, per-type basis.
摘要:
An extension system for rendering custom posts in the activity stream comprises an activity streams front end, an activity streams backend and a custom template storage. The activity streams backend is communicatively coupled to receive activity information from activity sources. Clients send custom metadata to the activity streams backend, including a key for decoding and rendering the proper templates and associated scripts on the activity streams frontend. The activity streams backend encodes this custom key and metadata as part of the activity information. The activity streams front end retrieves the encoded information and decodes the encoded information to produce data and a type. From the type, the activity streams front end accesses the custom template storage to determine the associated custom template and JavaScript. The activity streams front end cooperates with the client to use the data, custom template and JavaScript to render the activity information at the client device.
摘要:
The subject matter of this specification can be implemented in, among other things, a method that includes receiving a new message and providing instructions to a client device for collapsing at least one of one or more previously received messages when the number of messages reaches a number at which it is desirable to collapse the message thread. The method also includes providing instructions for appending a new message to the message thread. The method may also include instructions for providing one or more collapse or expand controls for managing message threads.
摘要:
Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for identifying a plurality of items to be displayed to a user, each item including digital content and being associated with a respective timestamp, receiving a plurality of scores, each score being associated with an item of the plurality of items, determining a subset of items to be displayed to the user based on the plurality of scores, the subset of items including items of the plurality of items, grouping items in the subset of items based on respective timestamps to provide a plurality of item groups, for each item group, determining an order of items based on respective scores, and transmitting instructions to display items to the user based on the plurality of item groups and in the order within each item group.