forked from GNUsocial/gnu-social
add_notice -> addNotice
This commit is contained in:
parent
a3725de47b
commit
054111bb54
@ -463,7 +463,7 @@ abstract class ImPlugin extends Plugin
|
|||||||
|
|
||||||
common_log(LOG_INFO, 'Posting a notice from ' . $user->nickname);
|
common_log(LOG_INFO, 'Posting a notice from ' . $user->nickname);
|
||||||
|
|
||||||
$this->add_notice($from, $user, $notice_text);
|
$this->addNotice($from, $user, $notice_text);
|
||||||
}
|
}
|
||||||
|
|
||||||
$user->free();
|
$user->free();
|
||||||
@ -481,7 +481,7 @@ abstract class ImPlugin extends Plugin
|
|||||||
*
|
*
|
||||||
* @param boolean success
|
* @param boolean success
|
||||||
*/
|
*/
|
||||||
protected function add_notice($screenname, $user, $body)
|
protected function addNotice($screenname, $user, $body)
|
||||||
{
|
{
|
||||||
$body = trim(strip_tags($body));
|
$body = trim(strip_tags($body));
|
||||||
$content_shortened = common_shorten_links($body);
|
$content_shortened = common_shorten_links($body);
|
||||||
|
@ -252,7 +252,7 @@ class IrcPlugin extends ImPlugin {
|
|||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
common_log(LOG_INFO, 'Posting a notice from ' . $user->nickname);
|
common_log(LOG_INFO, 'Posting a notice from ' . $user->nickname);
|
||||||
$this->add_notice($nick, $user, $notice_text);
|
$this->addNotice($nick, $user, $notice_text);
|
||||||
}
|
}
|
||||||
|
|
||||||
$user->free();
|
$user->free();
|
||||||
|
Loading…
Reference in New Issue
Block a user