Changeset 1398

Show
Ignore:
Timestamp:
03/08/07 11:36:53 (2 years ago)
Author:
jm3
Message:
  • adjusted possible import spammer notification email threshoold
  • made logging messages in add-by-mail consistent
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • feedmelinks/bin/add-link.pl

    r1356 r1398  
    8282 
    8383        if( ! $dbh ) { 
    84                 print LOG "$now [link-by-mail cant connect to DB]\n"; 
     84                print LOG "$now [link-by-mail error] cannot connect to DB]\n"; 
    8585                die( "can't connect to DB, fatal error\n" ); 
    8686        } 
     
    109109                my $linkID = $sth->fetchrow_array; 
    110110                if( $linkID ) { 
    111                         print LOG "$now [successfull likn-by-mail] $dbUser, link $linkID\n"; 
     111                        print LOG "$now [link-by-mail] $dbUser added $linkID\n"; 
    112112 
    113113                        $qs = "SELECT ID FROM linksGroups WHERE name = ? AND userid = ? AND isPrivate IS NULL"; 
     
    150150 
    151151                        } else { 
    152                                 print LOG "$now [link-by-mail no tag found] $dbUser, '$tagName'\n"; 
     152                                print LOG "$now [link-by-mail error] no tag found: $dbUser, tag: '$tagName'\n"; 
    153153                                die( "cant find a tag for this link, searching for '$tagName' failed, and adding a new one failed" ); 
    154154                        } 
    155155                } 
    156156        } else { 
    157                 print LOG "$now [unregistered link-by-mail attempt] $submitter\n"; 
     157                print LOG "$now [link-by-mail error] unregistered user $submitter\n"; 
    158158                die( "The email address $submitter isn't registered with any Feed Me Links user. Perhaps you registered under another name?" ); 
    159159        } 
  • feedmelinks/import/ready-to-import.php

    r1375 r1398  
    5353                                                $ls < $max_allowed_links  
    5454                                                && $ts < $max_allowed_tags 
    55                                                 && ($tr < $max_tags_to_links_ratio || $ls < 18
     55                                                && ($tr < $max_tags_to_links_ratio || $ls < 36
    5656                                        ) 
    5757                                        || is_privileged_importer( $u ) )  
    5858                        { 
    59                                 fire( "FML Debug: import request - $ls, $ts, $tr", "user $u importing $ls links and $ts tags with T:L ratio of $tr\nhttp://feedmelinks.com/u/$u" ); 
     59                                if( $ls > 20 )  
     60                                        fire( "FML Debug: import request - $ls, $ts, $tr", "user $u importing $ls links and $ts tags with T:L ratio of $tr\nhttp://feedmelinks.com/u/$u" ); 
    6061                                if( $tr > $max_tags_to_links_ratio && $ls > 5) 
    6162                                        log_mesg_to( "WARN. user $u importing $ls links and $ts tags with T:L ratio of $tr", "security" );