• Brion Vibber's avatar
    Consolidate some precondition checks for repeats, fix a couple bits in the repeat command. · 9adbb49f
    Brion Vibber authored
    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.
    9adbb49f
Name
Last commit
Last update
actions Loading commit data...
avatar Loading commit data...
background Loading commit data...
classes Loading commit data...
db Loading commit data...
doc-src Loading commit data...
extlib Loading commit data...
file Loading commit data...
js Loading commit data...
lib Loading commit data...
local Loading commit data...
locale Loading commit data...
plugins Loading commit data...
scripts Loading commit data...
tests Loading commit data...
theme Loading commit data...
tpl Loading commit data...
.gitignore Loading commit data...
COPYING Loading commit data...
EVENTS.txt Loading commit data...
Makefile Loading commit data...
README Loading commit data...
apple-touch-icon.png Loading commit data...
config.php.sample Loading commit data...
favicon.ico Loading commit data...
htaccess.sample Loading commit data...
index.php Loading commit data...
install.php Loading commit data...
lighttpd.conf.example Loading commit data...