In debates there's a particular logical fallacy that goes something like:
"Person A is bad. Person A thinks X is good. Therefore X is bad."
"Person A is good. Person A thinks X is good. Therefore X is good."
Essentially X is judged based on who likes/dislikes it, rather than on its own merits.
I'm wondering if there's a term for this particular type of logical fallacy? I'm not sure if it counts as 'ad hominem', since Person A is not the debater. It's also not quite 'Appeal to Authority' since Person A is not necessarily an important person. Any ideas?