Closed (won't fix)
Project:
Author Pane
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
2 Nov 2009 at 17:43 UTC
Updated:
9 Aug 2010 at 22:24 UTC
Relevant code:
if ($type == 'node' && $user->uid != $object->uid && $object->uid != 0 && user_access('ignore users')) {
177 if (!isset($ignored[$object->uid])) {
178 $ignored[$object->uid] = db_result(db_query('SELECT COUNT(*) FROM {ignore_user} WHERE uid = %d AND iuid = %d', $user->uid, $object->uid));
179 }
180 if ($ignored[$object->uid] == 0) {
181 $links['ignore_user'] = array(
182 'title' => t('Ignore user'),
183 'href' => 'ignore_user/add/'. $object->uid,
184 'query' => 'destination='. $_GET['q'],
185 'attributes' => array(
186 'class' => 'ignore-user',
187 'title' => t('Add user to your ignore list'),
188 ),
189 );
190 }
191 }
192 else if ($type == 'comment' && $user->uid != $object->uid && $object->uid != 0 && user_access('ignore users')) {
193 if (!isset($ignored[$object->uid])) {
194 $ignored[$object->uid] = db_result(db_query('SELECT COUNT(*) FROM {ignore_user} WHERE uid = %d AND iuid = %d', $user->uid, $object->uid));
195 }
196 if ($ignored[$object->uid] == 0) {
197 $links['ignore_user'] = array(
198 'title' => t('Ignore user'),
199 'href' => 'ignore_user/add'. $object->uid,
200 'query' => 'destination='. $_GET['q'],
201 'attributes' => array(
202 'class' => 'ignore-user',
203 'title' => t('Add user to your ignore list'),
204 ),
205 );
206 }
Comments
Comment #1
michelleSince I can no longer use ignore user, this is postponed.
Michelle
Comment #2
michelleThis won't be done by me.
Michelle