gnu-social/classes
Brion Vibber 9adbb49fc9 Consolidate some precondition checks for repeats, fix a couple bits in the repeat command.
Notice::saveNew() now does these checks directly when making a repeat:
* make sure the original is valid and existing
* stop you from repeating your own message
* stop you from repeating something you've previously repeated
* prevent repeats of any non-public messages
* explicit inScope() check to make sure you can read the original too (just in case there's a funky extension at play that changes scoping rules)

These error conditions throw exceptions, which the caller either uses as an error message or passes on up the stack, without having to duplicate the checks in each i/o channel.
2011-03-29 16:20:12 -07:00
..
Avatar.php Mass replacement of #-comments with //-comments 2011-03-22 11:54:23 -04:00
Config.php common_cache_key() -> Cache::key() 2010-09-06 10:07:43 -04:00
Confirm_address.php change function headers to K&R style 2008-12-23 14:33:23 -05:00
Consumer.php * i18n/L10n and translator documentation updates. 2010-09-28 23:21:09 +02:00
Conversation.php * i18n/L10n and translator documentation updates. 2010-09-28 23:21:09 +02:00
Deleted_notice.php check correct define (not backwards compatible) 2009-09-15 21:12:44 -04:00
Design.php Fix ticket #2181: Can't save #000000 (black) in color fields on design page 2011-01-04 13:09:44 -08:00
Fave.php Break up stream code to use separate notice stream classes 2011-03-24 18:04:19 -04:00
File_oembed.php Encapsulate the oEmbed -> oohembed fallback into oEmbedHelper class. Also added a chance to whitelist sites that don't show discovery info but do have oEmbed API endpoints, and to provide alternate APIs for some common services. 2010-11-12 17:41:35 -08:00
File_redirection.php Merge branch '0.9.x' into merge 2010-12-07 10:50:05 -08:00
File_thumbnail.php Save oEmbed photo references as thumbnails if there's not a separate thumbnail_url entry in the return data. This fixes thumb saving for Flickr photo references. 2010-11-12 14:03:08 -08:00
File_to_post.php Bad method call in File_to_post 2010-12-29 13:28:32 -08:00
File.php Break up stream code to use separate notice stream classes 2011-03-24 18:04:19 -04:00
Foreign_link.php Mass replacement of #-comments with //-comments 2011-03-22 11:54:23 -04:00
Foreign_service.php * i18n/L10n and translator documentation updates. 2010-09-28 23:21:09 +02:00
Foreign_subscription.php * i18n/L10n and translator documentation updates. 2010-09-28 23:21:09 +02:00
Foreign_user.php Mass replacement of #-comments with //-comments 2011-03-22 11:54:23 -04:00
Group_alias.php Fixed problem causing 500 error on notices containing a non-existent group 2010-03-06 00:30:15 +00:00
Group_block.php * i18n/L10n and translator documentation updates. 2010-09-28 23:21:09 +02:00
Group_inbox.php * i18n/L10n and translator documentation updates. 2010-09-28 23:21:09 +02:00
Group_join_queue.php fix regression in group join approval due to refactoring (forgot to remove a param) 2011-03-29 16:18:51 -07:00
Group_member.php Refactoring on notification mail generation: common profile & footer chunks pulled out, notifications added for group joins. 2011-03-22 16:50:27 -07:00
Inbox.php let Inbox class go fingerpokin' in streams 2011-03-23 11:42:52 -04:00
Invitation.php * i18n/L10n and translator documentation updates. 2010-09-28 23:21:09 +02:00
Local_group.php * add translator documentation 2010-07-29 13:01:04 +02:00
Location_namespace.php flip x flag on generated files 2009-10-21 22:43:41 -04:00
Login_token.php * add translator documentation 2010-07-29 13:01:04 +02:00
Managed_DataObject.php Tweaking request_queue -> group_join_queue, easier to deal with the indexes and keys and caching this way. 2011-03-21 15:05:36 -07:00
Memcached_DataObject.php Mass replacement of #-comments with //-comments 2011-03-22 11:54:23 -04:00
Message.php URL shortening fix for direct messages: if we're going to shorten the text, shorten the rendered text too. 2010-12-02 13:59:51 -08:00
Nonce.php * i18n/L10n and translator documentation updates. 2010-09-28 23:21:09 +02:00
Notice_inbox.php Dropped deprecated timestamp-based 'since' parameter for all API methods. When it sneaks in it can cause some very slow queries due to mismatches with the indexing. 2010-03-02 11:54:02 -08:00
Notice_source.php * i18n/L10n and translator documentation updates. 2010-09-28 23:21:09 +02:00
Notice_tag.php Break up stream code to use separate notice stream classes 2011-03-24 18:04:19 -04:00
Notice.php Consolidate some precondition checks for repeats, fix a couple bits in the repeat command. 2011-03-29 16:20:12 -07:00
Oauth_application_user.php Mass replacement of #-comments with //-comments 2011-03-22 11:54:23 -04:00
Oauth_application.php Ticket #2811 use more consistent max limit for OAuth application registration descriptions; now using the field max of 255 rather than $config['site']['textlimit'] as fallback if $config['application']['desclimit'] is unset or out of bounds. 2010-10-11 12:52:32 -07:00
Oauth_token_association.php i18n/L10n updates, translator docs updated, superfluous whitespace removed. 2010-10-21 03:10:46 +02:00
Profile_block.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
Profile_role.php Background deletion of user accounts. Notices are deleted in chunks, then the user itself when they're all gone. 2010-03-15 16:08:00 -07:00
Profile_tag.php Mass replacement of #-comments with //-comments 2011-03-22 11:54:23 -04:00
Profile.php Merge branch 'limitdist2' into 1.0.x 2011-03-29 17:32:17 -04:00
Queue_item.php Mass replacement of #-comments with //-comments 2011-03-22 11:54:23 -04:00
Related_group.php some class files had x bit set 2009-05-22 21:11:46 -04:00
Remember_me.php * i18n/L10n and translator documentation updates. 2010-09-28 23:42:18 +02:00
Remote_profile.php * i18n/L10n and translator documentation updates. 2010-09-28 23:42:18 +02:00
Reply.php Break up stream code to use separate notice stream classes 2011-03-24 18:04:19 -04:00
Safe_DataObject.php * i18n/L10n and translator documentation updates. 2010-09-28 23:42:18 +02:00
Schema_version.php Add stub schema_version table 2010-10-19 15:38:53 -07:00
Session.php Revert "Session GC fix: save session.modified field as UTC so our comparisons work." - no longer needed with ticket #3020 fix to time zone settings 2011-01-31 11:50:24 -08:00
Sms_carrier.php * i18n/L10n and translator documentation updates. 2010-09-28 23:42:18 +02:00
Status_network_tag.php * translator documentation added. 2010-10-23 19:20:51 +02:00
status_network.ini oops. really embarassing typo (that explains some weird behaviour) 2010-07-29 16:32:41 -04:00
Status_network.php * i18n/L10n and translator documentation updates. 2010-09-28 23:42:18 +02:00
statusnet.ini Merge branch '1.0.x' into limitdist2 2011-03-28 21:56:34 -04:00
statusnet.links.ini PHP 5.3 compatibility hack for DB_DataObject 2010-02-12 11:15:12 -08:00
Subscription_queue.php Durr... got items in wrong order :D Fixed email notification for pending subscribes 2011-03-28 17:22:37 -07:00
Subscription.php L10n/i18n updated. 2011-03-29 23:00:29 +02:00
Token.php Add verifier and verified callback to token for OAuth 1.0a 2010-01-24 16:36:05 -08:00
User_group.php Break up stream code to use separate notice stream classes 2011-03-24 18:04:19 -04:00
User_im_prefs.php IM cleanup on 1.0.x branch: 2010-04-30 15:29:05 -07:00
User_location_prefs.php Add magic formula to keep DB_DataObject from treating location prefs pkey as autoincrement 2009-12-30 08:56:43 -10:00
User_urlshortener_prefs.php Give users more control over URL shortening 2010-04-26 02:40:36 -04:00
User_username.php * i18n/L10n and translator documentation updates. 2010-09-28 23:42:18 +02:00
User.php L10n/i18n updated. 2011-03-29 23:00:29 +02:00