gnu-social/actions
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
..
accessadminpanel.php * i18n/L10n fixes. 2010-10-28 01:21:09 +02:00
accesstoken.php * i18n/L10n fixes. 2010-10-28 01:21:09 +02:00
all.php Merge branch '3cl' into 1.0.x 2011-03-07 14:30:30 -05:00
allrss.php Fix missing close of comment block 2010-11-11 10:39:05 -08:00
apiaccountratelimitstatus.php * i18n/L10n fixes. 2010-10-28 01:21:09 +02:00
apiaccountupdatedeliverydevice.php Merge branch '0.9.x' into 1.0.x 2011-02-28 15:39:43 -08:00
apiaccountupdateprofile.php Fix XML API output for several profile update methods that returned a <user> entry but didn't set namespaces, causing XML parse failures. 2011-01-24 12:41:30 -08:00
apiaccountupdateprofilebackgroundimage.php Fix XML API output for several profile update methods that returned a <user> entry but didn't set namespaces, causing XML parse failures. 2011-01-24 12:41:30 -08:00
apiaccountupdateprofilecolors.php Fix XML API output for several profile update methods that returned a <user> entry but didn't set namespaces, causing XML parse failures. 2011-01-24 12:41:30 -08:00
apiaccountupdateprofileimage.php Fix XML API output for several profile update methods that returned a <user> entry but didn't set namespaces, causing XML parse failures. 2011-01-24 12:41:30 -08:00
apiaccountverifycredentials.php * i18n/L10n fixes. 2010-10-28 01:21:09 +02:00
apiatomservice.php Update translator documentation 2011-01-20 18:40:20 +01:00
apiblockcreate.php Update translator documentation 2011-01-20 18:40:20 +01:00
apiblockdestroy.php * i18n/L10n fixes. 2010-10-28 01:21:09 +02:00
apidirectmessage.php * i18n/L10n fixes. 2010-10-28 01:21:09 +02:00
apidirectmessagenew.php * improve L10n consistency for English. For example proper punctuation for all button and label titles. 2011-02-17 00:40:47 +01:00
apifavoritecreate.php * i18n/L10n fixes. 2010-10-28 01:21:09 +02:00
apifavoritedestroy.php * i18n/L10n fixes. 2010-10-28 01:21:09 +02:00
apifriendshipscreate.php * i18n/L10n fixes. 2010-10-28 01:21:09 +02:00
apifriendshipsdestroy.php * i18n/L10n fixes. 2010-10-28 01:21:09 +02:00
apifriendshipsexists.php screen_name -> nick names. Spotted by The Evil IP address. 2010-11-07 22:31:02 +01:00
apifriendshipsshow.php * i18n/L10n fixes. 2010-10-28 01:21:09 +02:00
apigroupcreate.php Work in progress on nickname validation changes. lib/nickname.php appears to have been destroyed by NetBeans and will be rewritten shortly. Sigh. 2010-11-29 14:15:25 -08:00
apigroupismember.php * i18n/L10n fixes. 2010-10-28 01:21:09 +02:00
apigroupjoin.php Switch things from calling Group_member::join & leave & calling events manually to running through Profile::joinGroup() && Profile::leaveGroup(), with the events encapsulated. 2011-03-21 14:35:29 -07:00
apigroupleave.php Switch things from calling Group_member::join & leave & calling events manually to running through Profile::joinGroup() && Profile::leaveGroup(), with the events encapsulated. 2011-03-21 14:35:29 -07:00
apigrouplist.php Fix incorrect parameter documentation. Spotted by Nikerabbit. 2011-03-14 18:01:22 +01:00
apigrouplistall.php * i18n/L10n fixes. 2010-10-28 01:21:09 +02:00
apigroupmembership.php Fix error handling for missing group in apigroupmembership -- was trying to call methods on the variable before we checked it, which triggers PHP fatal error 2011-01-07 16:25:58 -08:00
apigroupprofileupdate.php * fix i18n and L10n issues. 2011-03-05 17:03:12 +01:00
apigroupshow.php * i18n/L10n fixes. 2010-10-28 01:21:09 +02:00
apihelptest.php * i18n/L10n fixes. 2010-10-28 01:21:09 +02:00
apimediaupload.php * i18n/L10n fixes. 2010-10-28 01:21:21 +02:00
apioauthaccesstoken.php * improve L10n consistency for English. For example proper punctuation for all button and label titles. 2011-02-17 00:40:47 +01:00
apioauthauthorize.php Update translator documentation. 2010-11-07 22:32:52 +01:00
apioauthpin.php * i18n/L10n fixes. 2010-10-28 01:21:21 +02:00
apioauthrequesttoken.php * i18n/L10n fixes. 2010-10-28 01:21:21 +02:00
apisearchatom.php Ticket #1987: support since_id on API notice search methods. 2010-11-19 14:00:22 -08:00
apisearchjson.php Ticket #1987: support since_id on API notice search methods. 2010-11-19 14:00:22 -08:00
apistatusesdestroy.php * i18n/L10n fixes. 2010-10-28 01:21:21 +02:00
apistatusesretweet.php Consolidate some precondition checks for repeats, fix a couple bits in the repeat command. 2011-03-29 16:20:12 -07:00
apistatusesretweets.php * i18n/L10n fixes. 2010-10-28 01:21:21 +02:00
apistatusesshow.php * improve L10n consistency for English. For example proper punctuation for all button and label titles. 2011-02-17 00:40:47 +01:00
apistatusesupdate.php allow group join/leave commands in api posting, at least for the moment (no other way to do remote subscribe without a preexisting local id number via api) 2011-01-06 13:46:39 -08:00
apistatusnetconfig.php Ticket #3011: Add attachments/uploads and attachments/file_quota to api/statusnet/config.(xml|json) 2011-02-21 15:52:12 -08:00
apistatusnetversion.php * i18n/L10n fixes. 2010-10-28 01:21:21 +02:00
apisubscriptions.php * i18n/L10n fixes. 2010-10-28 01:21:21 +02:00
apitimelinefavorites.php Make other timeline API endpoints output Activity Streams JSON 2011-02-18 15:43:40 -08:00
apitimelinefriends.php Add image to JSON ActivityObject and title + links to the JSON document 2011-02-16 16:21:46 -08:00
apitimelinegroup.php Make other timeline API endpoints output Activity Streams JSON 2011-02-18 15:43:40 -08:00
apitimelinehome.php Make other timeline API endpoints output Activity Streams JSON 2011-02-18 15:43:40 -08:00
apitimelinementions.php Make other timeline API endpoints output Activity Streams JSON 2011-02-18 15:43:40 -08:00
apitimelinepublic.php Make other timeline API endpoints output Activity Streams JSON 2011-02-18 15:43:40 -08:00
apitimelineretweetedbyme.php * i18n/L10n fixes. 2010-10-28 01:21:21 +02:00
apitimelineretweetedtome.php * Add FIXME: $profile appears to be undefined. 2011-03-18 13:10:55 +01:00
apitimelineretweetsofme.php Make other timeline API endpoints output Activity Streams JSON 2011-02-18 15:43:40 -08:00
apitimelinetag.php Make other timeline API endpoints output Activity Streams JSON 2011-02-18 15:43:40 -08:00
apitimelineuser.php Suppress PHP warnings/notices during AtomPub XML parsing to avoid HTTP header problems when given bad input. 2011-03-15 10:09:20 -07:00
apitrends.php * i18n/L10n fixes. 2010-10-28 01:21:21 +02:00
apiuserfollowers.php * i18n/L10n fixes. 2010-10-28 01:21:21 +02:00
apiuserfriends.php * i18n/L10n fixes. 2010-10-28 01:21:21 +02:00
apiuserprofileimage.php Ticket #2959: implement api/users/profile_image endpoint in Twitter-compat API 2010-12-17 17:10:52 -08:00
apiusershow.php * i18n/L10n fixes. 2010-10-28 01:21:21 +02:00
approvegroup.php L10n/i18n updated. 2011-03-29 23:00:29 +02:00
approvesub.php L10n/i18n updated. 2011-03-29 23:00:29 +02:00
atompubfavoritefeed.php 'note' -> 'notice' in an error message -- thx to AVRS on IRC for the catch on translatewiki.net :D 2011-03-08 10:58:14 -08:00
atompubmembershipfeed.php Fix incorrect translator documentation. Spotted by AVRS. 2011-03-28 01:43:01 +02:00
atompubshowfavorite.php Add correct punctuation for client exception. 2011-01-21 10:55:08 +01:00
atompubshowmembership.php Switch things from calling Group_member::join & leave & calling events manually to running through Profile::joinGroup() && Profile::leaveGroup(), with the events encapsulated. 2011-03-21 14:35:29 -07:00
atompubshowsubscription.php Translator comments added 2011-01-20 20:00:45 +01:00
atompubsubscriptionfeed.php Fix "$s"s that slipped into double-quoted translatable strings' '%1$s' pattern. Switch to single-quote to fix. 2011-01-31 14:00:22 -08:00
attachment_ajax.php * i18n/L10n updates. 2010-10-31 00:58:35 +02:00
attachment_thumbnail.php * i18n/L10n updates. 2010-10-31 00:58:35 +02:00
attachment.php * i18n/L10n updates. 2010-10-31 00:58:35 +02:00
avatarbynickname.php * i18n/L10n updates. 2010-10-31 00:58:35 +02:00
avatarsettings.php Merge branch '0.9.x' into 1.0.x 2011-02-28 15:39:43 -08:00
backupaccount.php Merge branch 'master' into 0.9.x 2011-02-25 12:24:18 -08:00
block.php * improve L10n consistency for English. For example proper punctuation for all button and label titles. 2011-02-17 00:40:47 +01:00
blockedfromgroup.php show object nav for blocked users in a group 2011-03-01 16:08:49 -05:00
bookmarklet.php * i18n/L10n updates. 2010-10-31 00:58:35 +02:00
cancelgroup.php Working subscription approval! 2011-03-28 17:08:04 -07:00
cancelsubscription.php L10n/i18n updated. 2011-03-29 23:00:29 +02:00
confirmaddress.php Update/add translator documentation. 2011-03-18 13:48:47 +01:00
conversation.php * i18n/L10n updates. 2010-10-31 00:58:35 +02:00
conversationreplies.php Translator documentation added/updates. 2011-03-18 17:04:38 +01:00
deleteaccount.php Add a scary 'experimental feture' warning & are-you-sure prompt on moveuser.php 2011-01-19 15:13:46 -08:00
deleteapplication.php * improve L10n consistency for English. For example proper punctuation for all button and label titles. 2011-02-17 00:40:47 +01:00
deletegroup.php * improve L10n consistency for English. For example proper punctuation for all button and label titles. 2011-02-17 00:40:47 +01:00
deletenotice.php * improve L10n consistency for English. For example proper punctuation for all button and label titles. 2011-02-17 00:40:47 +01:00
deleteuser.php * improve L10n consistency for English. For example proper punctuation for all button and label titles. 2011-02-17 00:40:47 +01:00
designadminpanel.php * improve L10n consistency for English. For example proper punctuation for all button and label titles. 2011-02-17 00:40:47 +01:00
disfavor.php * Add/update translator documentation. 2011-01-30 19:01:55 +01:00
doc.php Add translator documentation 2011-01-21 16:35:00 +01:00
editapplication.php * Add/update translator documentation. 2011-01-30 19:01:55 +01:00
editgroup.php Add request_queue table and user_group.join_policy column, for upcoming join & subscription moderation. 2011-03-21 13:51:13 -07:00
emailsettings.php Merge branch '0.9.x' into 1.0.x 2011-02-28 15:39:43 -08:00
favor.php * improve L10n consistency for English. For example proper punctuation for all button and label titles. 2011-02-17 00:40:47 +01:00
favorited.php default local nav in popular notices 2011-03-01 16:11:19 -05:00
favoritesrss.php * Add/update translator documentation. 2011-01-30 19:01:55 +01:00
featured.php default local nav in featured user list 2011-03-01 16:11:59 -05:00
file.php * Add/update translator documentation. 2011-01-30 19:01:55 +01:00
finishremotesubscribe.php * update/add translator documentation. 2011-01-31 16:39:54 +01:00
foaf.php * update/add translator documentation. 2011-01-31 16:39:54 +01:00
foafgroup.php * update/add translator documentation. 2011-01-31 16:39:54 +01:00
geocode.php * update/add translator documentation. 2011-01-31 16:39:54 +01:00
getfile.php Merge branch '0.9.x' into 1.0.x 2011-02-28 15:39:43 -08:00
grantrole.php * update/add translator documentation. 2011-01-31 16:39:54 +01:00
groupblock.php * improve L10n consistency for English. For example proper punctuation for all button and label titles. 2011-02-17 00:40:47 +01:00
groupbyid.php * update/add translator documentation. 2011-01-31 16:39:54 +01:00
groupdesignsettings.php show defaultlocalnav in groupdesignsettings 2011-03-01 16:15:03 -05:00
grouplogo.php show defaultlocalnav in grouplogo 2011-03-01 16:17:01 -05:00
groupmembers.php Split up some list/form classes, and get the 'approve' and 'cancel' links on group member queue working. 2011-03-21 17:17:18 -07:00
groupqueue.php L10n/i18n updated. 2011-03-29 23:00:29 +02:00
grouprss.php * add/update translator documentation. 2011-01-31 18:16:55 +01:00
groups.php defaultlocalnav in groups 2011-03-01 16:18:33 -05:00
groupsearch.php * add/update translator documentation. 2011-01-31 18:16:55 +01:00
groupunblock.php * add/update translator documentation. 2011-01-31 18:16:55 +01:00
hcard.php * add/update translator documentation. 2011-01-31 18:16:55 +01:00
hostmeta.php Merge branch '0.9.x' into 1.0.x 2011-02-28 15:39:43 -08:00
imsettings.php Update/add translator documentation. 2011-03-18 13:48:47 +01:00
inbox.php * improve L10n consistency for English. For example proper punctuation for all button and label titles. 2011-02-17 00:40:47 +01:00
invite.php Mass replacement of #-comments with //-comments 2011-03-22 11:54:23 -04:00
joingroup.php Update translator documentation. 2011-03-24 11:48:51 +01:00
leavegroup.php Switch things from calling Group_member::join & leave & calling events manually to running through Profile::joinGroup() && Profile::leaveGroup(), with the events encapsulated. 2011-03-21 14:35:29 -07:00
licenseadminpanel.php * translator documntation updated 2011-03-05 00:13:04 +01:00
login.php no profileblock on login actions 2011-03-16 10:05:07 -04:00
logout.php * translator documntation updated 2011-03-05 00:13:04 +01:00
makeadmin.php * translator documntation updated 2011-03-05 00:13:04 +01:00
microsummary.php * translator documntation updated 2011-03-05 00:13:04 +01:00
newapplication.php Update/add translator documentation. 2011-03-18 13:48:47 +01:00
newgroup.php Add request_queue table and user_group.join_policy column, for upcoming join & subscription moderation. 2011-03-21 13:51:13 -07:00
newmessage.php * translator documntation updated 2011-03-05 00:13:04 +01:00
newnotice.php ToSelector widget to send private notices 2011-03-28 11:02:20 -04:00
noticesearch.php Event hook for notice search pages 2011-03-15 15:33:37 -07:00
noticesearchrss.php * update translator documentation. 2011-02-17 20:58:22 +01:00
nudge.php * translator documntation updated 2011-03-05 00:13:04 +01:00
oauthappssettings.php Merge branch '0.9.x' into 1.0.x 2011-02-28 15:39:43 -08:00
oauthconnectionssettings.php Fix mising require_once (now required here because of rearranging) 2011-03-01 15:31:06 -08:00
oembed.php * translator documntation updated 2011-03-05 00:13:04 +01:00
opensearch.php * translator documntation updated 2011-03-05 00:13:04 +01:00
otp.php * update translator documentation. 2011-02-17 21:10:48 +01:00
outbox.php * improve L10n consistency for English. For example proper punctuation for all button and label titles. 2011-02-17 00:40:47 +01:00
passwordsettings.php Mass replacement of #-comments with //-comments 2011-03-22 11:54:23 -04:00
pathsadminpanel.php Update/add translator documentation. 2011-03-18 13:48:47 +01:00
peoplesearch.php * update translator documentation. 2011-02-17 20:58:22 +01:00
peopletag.php * update/add translator documentation. 2011-03-11 17:07:27 +01:00
plugindisable.php * update/add translator documentation. 2011-03-11 17:07:27 +01:00
pluginenable.php * update/add translator documentation. 2011-03-11 17:07:27 +01:00
pluginsadminpanel.php * update/add translator documentation. 2011-03-11 17:07:27 +01:00
postnotice.php * update/add translator documentation. 2011-03-11 17:07:27 +01:00
profilesettings.php L10n/i18n updated. 2011-03-29 23:00:29 +02:00
public.php Paging fix for public timeline: drop replies from the stuff we pull in for the threaded web view. 2011-03-29 15:40:07 -07:00
publicrss.php * update translator documentation. 2011-02-17 20:58:22 +01:00
publictagcloud.php Mass replacement of #-comments with //-comments 2011-03-22 11:54:23 -04:00
publicxrds.php * update/add translator documentation. 2011-03-11 17:07:27 +01:00
recoverpassword.php Mass replacement of #-comments with //-comments 2011-03-22 11:54:23 -04:00
redirect.php Add a doc page that links to the StatusNet wiki API page 2010-10-12 23:38:16 -04:00
redirecturl.php Translator documentation added/updates. 2011-03-18 17:04:38 +01:00
register.php Fix incorrect translator documentation. Spotted by AVRS. 2011-03-29 23:14:40 +02:00
remotesubscribe.php Translator documentation added/updates. 2011-03-18 17:04:38 +01:00
repeat.php Consolidate some precondition checks for repeats, fix a couple bits in the repeat command. 2011-03-29 16:20:12 -07:00
replies.php Translator documentation added/updated. 2011-03-18 20:37:04 +01:00
repliesrss.php * update translator documentation. 2011-02-17 20:58:22 +01:00
requesttoken.php * update translator documentation. 2011-02-17 20:58:22 +01:00
restoreaccount.php * improve L10n consistency for English. For example proper punctuation for all button and label titles. 2011-02-17 00:40:47 +01:00
revokerole.php Translator documentation added/updated. 2011-03-18 20:37:04 +01:00
robotstxt.php * update translator documentation. 2011-02-17 21:10:48 +01:00
rsd.php Translator documentation added/updated. 2011-03-18 20:37:04 +01:00
sandbox.php Update translator documentation. 2011-03-24 11:48:53 +01:00
sessionsadminpanel.php Update translator documentation. 2011-03-24 11:48:53 +01:00
showapplication.php Update translator documentation. 2011-03-24 11:48:53 +01:00
showfavorites.php defaultlocalnav for favorites 2011-03-01 16:21:22 -05:00
showgroup.php set default address for showgroup 2011-03-28 16:24:17 -04:00
showmessage.php Make ShowmessageAction not be a subclass of MailboxAction 2011-02-08 11:33:36 -05:00
shownotice.php don't show notices to out-of-scope viewers 2011-03-28 22:21:41 -04:00
showstream.php set default address for showstream 2011-03-28 16:24:28 -04:00
silence.php Translator documentation updated. 2011-03-24 12:09:50 +01:00
siteadminpanel.php Translator documentation updated. 2011-03-24 12:09:50 +01:00
sitenoticeadminpanel.php * improve L10n consistency for English. For example proper punctuation for all button and label titles. 2011-02-17 00:40:47 +01:00
smssettings.php Change email to SMS. Spotted by Nikerabbit. 2011-03-17 13:59:22 +01:00
snapshotadminpanel.php Update translator documentation. 2011-03-29 21:30:35 +02:00
subedit.php * translator documentation updated. 2010-10-31 01:16:59 +02:00
subqueue.php Working subscription approval! 2011-03-28 17:08:04 -07:00
subscribe.php work in progress... 2011-03-28 13:59:48 -07:00
subscribers.php Fix warning in subscribers/subscriptions list pages where we attempted to call free() an ArrayWrapper after it was used up, thus trying to forward the call to a nonexistent object. 2011-01-07 15:29:30 -08:00
subscriptions.php Merge branch '0.9.x' into 1.0.x 2011-02-28 15:39:43 -08:00
sup.php Mass replacement of #-comments with //-comments 2011-03-22 11:54:23 -04:00
tag.php Update translator documentation. 2011-03-29 21:30:35 +02:00
tagother.php Update translator documentation. 2011-03-29 21:30:35 +02:00
tagrss.php Update translator documentation. 2011-03-29 21:30:35 +02:00
unblock.php * update translator documentation. 2011-02-17 20:58:22 +01:00
unsandbox.php Update translator documentation. 2011-03-29 21:30:35 +02:00
unsilence.php Update translator documentation. 2011-03-29 21:30:35 +02:00
unsubscribe.php Update translator documentation. 2011-03-29 21:30:36 +02:00
updateprofile.php Update translator documentation. 2011-03-29 21:30:36 +02:00
urlsettings.php Update translator documentation. 2011-03-29 21:30:36 +02:00
useradminpanel.php * improve L10n consistency for English. For example proper punctuation for all button and label titles. 2011-02-17 00:40:47 +01:00
userauthorization.php Update translator documentation. 2011-03-29 21:30:36 +02:00
userbyid.php * update translator documentation. 2011-02-17 20:58:22 +01:00
userdesignsettings.php Update/add translator documentation. 2011-03-18 13:48:47 +01:00
usergroups.php Translator documentation added/updated. 2011-03-18 20:37:04 +01:00
userrss.php Mass replacement of #-comments with //-comments 2011-03-22 11:54:23 -04:00
userxrd.php * improve L10n consistency for English. For example proper punctuation for all button and label titles. 2011-02-17 00:40:47 +01:00
version.php Add myself to contributors array. 2011-03-18 20:15:57 +01:00
xrds.php * update translator documentation. 2011-02-17 20:58:22 +01:00