Check-in [1c0b6ac0e7]
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Detect other Twitter URL variations. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
1c0b6ac0e731b721f6670fc8403f32cf |
User & Date: | mario 2014-12-29 14:10:00 |
Context
2014-12-29
| ||
14:10 | Addition of gtkapps, kdeapps, qtapps, cliapps to feed list. check-in: 20f04cf33d user: mario tags: trunk | |
14:10 | Detect other Twitter URL variations. check-in: 1c0b6ac0e7 user: mario tags: trunk | |
14:08 | Forum: threads with new submissions order on top now. check-in: 39f671788e user: mario tags: trunk | |
Changes
Changes to cron.daily/twitter.php.
︙ | ︙ | |||
53 54 55 56 57 58 59 | } // prepare post $msg = "$row[title] $row[version] released. $row[homepage]"; $msg = preg_replace("/\s+/", " ", $msg); // check for project Twitter= URL, add @mention | | | 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) { |
︙ | ︙ |