LJ::get_recent_items

LJ::get_recent_items — Returns journal entries for a given account.

Use

LJ::get_recent_items(opts);

Arguments

  • opts. Hashref of options with keys: -- err: scalar ref to return error code/msg in -- userid -- remote: remote user's $u -- remoteid: id of remote user -- tagids: arrayref of tagids to return entries with -- security: (public|friends|private) or a group number -- clustersource: if value 'slave', uses replicated databases -- order: if 'logtime', sorts by logtime, not eventtime -- friendsview: if true, sorts by logtime, not eventtime -- notafter: upper bound inclusive for rlogtime/revttime (depending on sort mode), defaults to no limit -- afterid: upper bound inclusive for jitemid. defaults to not use -- skip: items to skip -- itemshow: items to show -- viewall: if set, no security is used. -- viewsome: if set, suspended flag is not used -- dateformat: if "S2", uses S2's 'alldatepart' format. -- itemids: optional arrayref onto which itemids should be pushed -- posterid: [userid] optional, return (community) posts made by this poster only -- poster: [username] optional, return (community) posts made by this poster only returns: array of hashrefs containing keys: -- itemid (the jitemid) -- posterid -- security -- alldatepart (in S1 or S2 fmt, depending on 'dateformat' req key) -- system_alldatepart (same as above, but for the system time) -- ownerid (if in 'friendsview' mode) -- rlogtime (if in 'friendsview' mode) -- entry_objects: optional arrayref onto which LJ::Entry objects should be pushed -- load_props: if set, objects into entry_objects comes whis preloaded props -- load_text: if set, objects into entry_objects comes whis preloaded text

Source:

cgi-bin/ljlib.pl