mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: For spam detection, don't count total occurances of links of the same host, but
post count including that host.
This commit is contained in:
@@ -201,7 +201,7 @@ describe Post do
|
||||
end
|
||||
|
||||
it "it counts properly with more than one link on the same host" do
|
||||
three_links.linked_hosts.should == {"discourse.org" => 2, "www.imdb.com" => 1}
|
||||
three_links.linked_hosts.should == {"discourse.org" => 1, "www.imdb.com" => 1}
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user