We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit b80ece16 authored by Evan Prodromou's avatar Evan Prodromou

hide poll response notices from threaded view

parent c382a1d8
......@@ -480,4 +480,18 @@ class PollPlugin extends MicroAppPlugin
// TRANS: Application title.
return _m('APPTITLE','Poll');
function onStartShowThreadedNoticeTail($nli, $notice, &$children)
// Filter out any poll responses
if ($notice->object_type == self::POLL_OBJECT) {
$children = array_filter($children, array($this, 'isNotPollResponse'));
return true;
function isNotPollResponse($notice)
return ($notice->object_type != self::POLL_RESPONSE_OBJECT);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment