summaryrefslogtreecommitdiff
path: root/classes/Notice.php
AgeCommit message (Collapse)Author
2010-12-08Don't cache user-specific information for Notice atom entriesEvan Prodromou
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-04Fix unescaped dollar signs in double-quoted strings due to localization ↵Brion Vibber
updates (%1$s etc)
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-08Merge branch 'master' into testingBrion Vibber
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
2010-08-03correctly show <source> for atom feedsEvan Prodromou
2010-08-02correct output for EndActivityInReplyTo eventEvan Prodromou
2010-08-02add some activity hooksEvan Prodromou
2010-08-02add support for Salmon's new "mentioned" rel valueJames Walker
2010-07-30Fixes for messages after review by Brion.Siebrand Mazeland
2010-07-29Merge branch 'master' into 0.9.xZach Copley
Conflicts: classes/Notice.php
2010-07-29Return HTTP 403 instead of 400 when silenced users try to post via APIZach Copley
2010-07-29* mark two untranslatable server exceptions as translatableSiebrand Mazeland
* number parameters when multiple are user in a message * update translator documentation
2010-07-21Revert "Revert "Change the cache window on notices from 61 to 200, the max ↵Zach Copley
number"" This reverts commit a65b3f171c4d23af8ca844439ad08959eb760b86.
2010-07-19Revert "Change the cache window on notices from 61 to 200, the max number"Zach Copley
This reverts commit d51820adc52aef962542ecc6da0607ce0118fefc.
2010-07-19Change the cache window on notices from 61 to 200, the max numberZach Copley
of notices available at one time through the API. Note: this will require a memcache restart.
2010-07-13push exception on missing profile down to Notice::getProfile()Evan Prodromou
2010-06-26Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.xBrion Vibber
Conflicts: plugins/OpenID/openidserver.php (cleaned up mismatched comment)
2010-06-26Merge branch 'master' into testingBrion Vibber
2010-06-22- Add profile_info tag to Atom authorZach Copley
- Normalize xmlns:statusnet links in the API
2010-06-17Include source client's related URL (if any) in source attribution forZach Copley
Atom notice feeds
2010-06-11Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.xBrion Vibber
2010-06-07Merge branch 'master' of gitorious.org:statusnet/mainline into testingBrion Vibber
2010-06-07Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.xBrion Vibber
Conflicts: plugins/OpenID/openid.php
2010-06-03Skip enqueueing to outgoing bridges on incoming remote messages. Twitter, ↵Brion Vibber
Facebook, RSSCloud, and OStatus checks were enqueued on these when they'd never do anything but churn the queue servers. Notice::isLocal() can replace a number of manual checks for $notice->is_local being LOCAL_PUBLIC or LOCAL_NONPUBLIC.