]> git.mxchange.org Git - quix0rs-gnu-social.git/commit - lib/command.php
Disallow repeats (retweets) of private notices
authorEvan Prodromou <evan@status.net>
Tue, 29 Mar 2011 15:53:26 +0000 (11:53 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 29 Mar 2011 15:53:26 +0000 (11:53 -0400)
commit32145484c28323c95c0f84a274fb13714b738a3d
tree8aa76745fcbef0923b8fe45d0b58f34c4bb295f7
parent908551ae3d20cab1a8b6c39eeda82c0c4af4c92b
Disallow repeats (retweets) of private notices

We disallow repeating a notice (or whatever) if the scope of the
notice is too private. So, only notices that are public scope
(available to everyone in the world) or site scope (available to
everyone on the site) can be repeated.

Enforce this rule at a low level in Notice.php, and in the API,
commands, and Web UI. Repeat button doesn't appear on tightly-scoped
notices in the Web UI.
actions/apistatusesretweet.php
actions/repeat.php
classes/Notice.php
lib/command.php
lib/noticelistitem.php