forked from GNUsocial/gnu-social
		
	Use new event to show forms
This commit is contained in:
		@@ -172,7 +172,7 @@ class ActivitySpamPlugin extends Plugin
 | 
				
			|||||||
        return false;
 | 
					        return false;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function onStartShowNoticeOptions($nli)
 | 
					    function onEndShowNoticeOptionItems($nli)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        $notice = $nli->getNotice();
 | 
					        $notice = $nli->getNotice();
 | 
				
			||||||
        $out = $nli->getOut();
 | 
					        $out = $nli->getOut();
 | 
				
			||||||
@@ -186,14 +186,10 @@ class ActivitySpamPlugin extends Plugin
 | 
				
			|||||||
                // XXX: show a question-mark or something
 | 
					                // XXX: show a question-mark or something
 | 
				
			||||||
            } else if ($score->is_spam) {
 | 
					            } else if ($score->is_spam) {
 | 
				
			||||||
                $form = new TrainHamForm($out, $notice);
 | 
					                $form = new TrainHamForm($out, $notice);
 | 
				
			||||||
                $out->elementStart('div', 'notice-options');
 | 
					 | 
				
			||||||
                $form->show();
 | 
					                $form->show();
 | 
				
			||||||
                $out->elementEnd('div');
 | 
					 | 
				
			||||||
            } else if (!$score->is_spam) {
 | 
					            } else if (!$score->is_spam) {
 | 
				
			||||||
                $form = new TrainSpamForm($out, $notice);
 | 
					                $form = new TrainSpamForm($out, $notice);
 | 
				
			||||||
                $out->elementStart('div', 'notice-options');
 | 
					 | 
				
			||||||
                $form->show();
 | 
					                $form->show();
 | 
				
			||||||
                $out->elementEnd('div');
 | 
					 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user