⌈⌋ branch:  freshcode


Check-in [1c0b6ac0e7]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1:1c0b6ac0e731b721f6670fc8403f32cfd18d177d
Date: 2014-12-29 14:10:00
User: mario
Comment:Detect other Twitter URL variations.
Tags And Properties
  • branch=trunk inherited from [82405bb421]
  • sym-trunk inherited from [82405bb421]
Context
2014-12-29
14:10
[20f04cf33d] Addition of gtkapps, kdeapps, qtapps, cliapps to feed list. (user: mario, tags: trunk)
14:10
[1c0b6ac0e7] Detect other Twitter URL variations. (user: mario, tags: trunk)
14:08
[39f671788e] Forum: threads with new submissions order on top now. (user: mario, tags: trunk)
Changes

Changes to cron.daily/twitter.php.

53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
    }

    // prepare post
    $msg = "$row[title] $row[version] released. $row[homepage]";
    $msg = preg_replace("/\s+/", " ", $msg);
    
    // check for project Twitter= URL, add @mention
    if (preg_match("~https?://twitter.com/@?(\w{2,15})~", $row["urls"], $uu)) {
        $msg .= " @$uu[1]";
    }
    
    // add tags
    $tags = p_csv($row["tags"]);
    shuffle($tags);
    foreach (array_slice($tags, 0, 5) as $tag) {







|







53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
    }

    // prepare post
    $msg = "$row[title] $row[version] released. $row[homepage]";
    $msg = preg_replace("/\s+/", " ", $msg);
    
    // check for project Twitter= URL, add @mention
    if (preg_match("~https?://(?:www\.)?twitter.com/@?(\w{2,15})~", $row["urls"], $uu)) {
        $msg .= " @$uu[1]";
    }
    
    // add tags
    $tags = p_csv($row["tags"]);
    shuffle($tags);
    foreach (array_slice($tags, 0, 5) as $tag) {