summaryrefslogtreecommitdiff
path: root/classes/Notice.php
AgeCommit message (Collapse)Author
2010-12-22Merge branch '0.9.x' into 1.0.xBrion Vibber
2010-12-22Merge branch 'righttoleave' into 0.9.xEvan Prodromou
2010-12-17Merge branch '0.9.x' into 1.0.xBrion Vibber
Conflicts: classes/Memcached_DataObject.php
2010-12-17Update sorting for conversation views: adds ↵Brion Vibber
notice_conversation_created_id_idx index on notice, replacing more limited notice_conversation_idx
2010-12-17Update sorting on api/statuses/retweets: adds ↵Brion Vibber
notice_repeat_of_created_id_idx index to replace notice_repeatof_idx
2010-12-17work around borkage in statuses/repeats -- tries to check an offset var ↵Brion Vibber
that's not there. use the limit var which is there instead
2010-12-17Update notice sorting for profile streams; extract more common code to ↵Brion Vibber
Notice::addSinceId() and Notice::addMaxId()
2010-12-17Notice::whereSinceId() and Notice::whereMaxId() encapsulate logic for ↵Brion Vibber
building where clauses for since_id/max_id parameters. Can override the field names from 'id' and 'created'.
2010-12-17Initial switch of public timeline stream to use timestamps for internal sortingBrion Vibber
2010-12-17Notice::getAsTimestamp() static function to look up the timestamp for a ↵Brion Vibber
given notice, even if it's been deleted. To be used for converting since_id/max_id processing to use timestamp sorting internally.
2010-12-16distribute flag for Notice::saveNew()Evan Prodromou
2010-12-15Merge branch '0.9.x' into 1.0.xBrion Vibber
2010-12-08Don't cache user-specific information for Notice atom entriesEvan Prodromou
2010-12-07Merge branch '0.9.x' into mergeBrion Vibber
Conflicts: README actions/hostmeta.php classes/File_redirection.php lib/common.php lib/designsettings.php lib/router.php lib/util.php lib/xmppmanager.php plugins/OStatus/OStatusPlugin.php
2010-12-06use codeKey() in activity cachingEvan Prodromou
2010-12-06cache generated activity infoEvan Prodromou
2010-12-05Convert Notice::asAtomEntry() to use Notice::asActivity() and ↵Evan Prodromou
Activity::asString() We had two ways to generate an activity entry from a notice; one through Notice::asAtomEntry() and one through Notice::asActivity() and Activity::asString(). The code paths had already diverged somewhat. I took the conditions that were in Notice::asAtomEntry() and made sure they were replicated in the other two functions. Then, I rewrote Notice::asAtomEntry() to use the other two functions instead. This change passes the ActivityGenerationTests unit tests, but there may be some other stuff that's not getting covered.
2010-12-02Fix for tickets #2917, #2262: user URL shortening options not being applied ↵Brion Vibber
in non-web channels common_shorten_links() can only access the web session's logged-in user, so never properly took user options into effect for posting via XMPP, API, mail, etc. Adds an optional $user parameter on common_shorten_links(), and a $user->shortenLinks() as a clearer interface for that. Tweaked some lower-level functions so $user gets passed down -- making the $notice_id param previously there for saving URLs at notice save time generalized a little. Note also ticket #2919: there's a lot of duplicate code calling the shortening, checking the length, and reporting near-identical error messages. These should be consolidated to aid in code and translation maintenance.
2010-11-17Add $config['attachments']['process_links'] to allow disabling processing of ↵Brion Vibber
mentioned URL links for attachment info (oEmbed lookups) and dereferencing of redirects that we didn't have shortened ourselves. This option may be useful for intranet sites that don't have direct access to the internet, as they may be unable to successfully fetch those resources.
2010-11-15Merge branch 'atompub' into 0.9.xEvan Prodromou
Conflicts: actions/apistatusesshow.php actions/apitimelineuser.php
2010-11-04i18n/L10n updates.Siebrand Mazeland
2010-11-03Fix for ticket #2804: bad non-cache fallback code for dupe checks of ↵Brion Vibber
prolific posters The old code attempted to compare the value of the notice.created field against now() directly, which tends to explode in our current systems. now() comes up as the server/connection local timezone generally, while the created field is currently set as hardcoded UTC from the web servers. This would lead to breakage when we got a difference in seconds that's several hours off in either direction (depending on the local timezone). New code calculates a threshold by subtracting the number of seconds from the current UNIX timestamp and passing that in in correct format for a simple comparison. As a bonus, this should also be more efficient, as it should be able to follow the index on profile_id and created.
2010-10-25add rel=self links to atom entriesEvan Prodromou
2010-10-24show rel=edit links in notices for authenticated usersEvan Prodromou
2010-10-05Merge branch '0.9.x' into 1.0.xBrion Vibber
2010-10-04Fix unescaped dollar signs in double-quoted strings due to localization ↵Brion Vibber
updates (%1$s etc)
2010-10-04Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 1.0.xBrion Vibber
Conflicts: actions/hostmeta.php actions/imsettings.php classes/User.php lib/adminpanelaction.php lib/channel.php lib/default.php lib/router.php lib/util.php
2010-09-30ForceGroup plugin: optionally force new users to join a particular group or ↵Brion Vibber
set of groups on registration; and/or to force posts by members of particular groups to be posted into those groups even if not explicitly mentioned. The posting feature requires a couple quick hook additions in core.
2010-09-30ForceGroup plugin: optionally force new users to join a particular group or ↵Brion Vibber
set of groups on registration; and/or to force posts by members of particular groups to be posted into those groups even if not explicitly mentioned. The posting feature requires a couple quick hook additions in core.
2010-09-28* i18n/L10n and translator documentation updates.Siebrand Mazeland
* whitespace and indentation updates
2010-09-22Merge branch '0.9.x' into activityexportEvan Prodromou
Conflicts: plugins/OStatus/OStatusPlugin.php
2010-09-21use Profile::getUri() to get a profile's URIEvan Prodromou
2010-09-20Ticket #2327: fixing block to remove the blocking user's subscription to the ↵Brion Vibber
blockee if present; also cleaning up inbox delivery to apply the block checks more consistently, instead of just to group posts.
2010-09-13bugs in function calls in Notice::asActivityEvan Prodromou
2010-09-13Notice::asActivityEvan Prodromou
2010-09-09Merge branch '0.9.x' into 1.0.xEvan Prodromou
Conflicts: EVENTS.txt plugins/TwitterBridge/daemons/twitterstatusfetcher.php plugins/TwitterBridge/twitterbasicauthclient.php
2010-09-08Merge branch 'master' into testingBrion Vibber
2010-09-06common_cache_key() -> Cache::key()Evan Prodromou
2010-09-06common_keyize() -> Cache::keyize()Evan Prodromou
2010-09-06common_memcache() => Cache::instance()Evan Prodromou
2010-09-02Don't explode if we fail to load a listed attachment id in Notice::attachments()Brion Vibber
2010-09-02Merge branch 'swat0' into 0.9.xEvan Prodromou
2010-09-01Notice::saveReplies() uses Profile::fromURI() to handle remote profiles tooEvan Prodromou
2010-08-14Merge branch 'noticetitle' into 0.9.xEvan Prodromou
2010-08-14on deleting a noticeEvan Prodromou
2010-08-12Fix PHP notice spew when Notice::saveNew() called without passing any ↵Brion Vibber
options; default empty vars weren't being set.
2010-08-10Fix for regression with OStatus mention processing (duplicated new and old ↵Brion Vibber
style lead to trying to save a reply entry twice).
2010-08-03re-add mentioned link lost in last mergeEvan Prodromou
2010-08-03Merge branch 'activityhooks' into 0.9.xEvan Prodromou
Conflicts: classes/Notice.php
2010-08-03output Atom dates in UTCEvan Prodromou