Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 13
- Log:
Initial import of Typo 2.6.0 sources from a downloaded Tarball.
Typo is a Ruby On Rails based blog engine.
- Author:
- adh
- Date:
- Sat Jul 22 22:25:02 +0100 2006
- Size:
- 450 Bytes
1 | class Ping < ActiveRecord::Base |
2 | belongs_to :article |
3 | |
4 | def send_ping(origin_url) |
5 | uri = URI.parse(self.url) |
6 | post = "title=#{URI.escape(article.title)}" |
7 | post << "&excerpt=#{URI.escape(strip_html(article.body_html)[0..254])}" |
8 | post << "&url=#{origin_url}" |
9 | post << "&blog_name=#{URI.escape(config[:blog_name])}" |
10 | |
11 | Net::HTTP.start(uri.host, uri.port) do |http| |
12 | http.post("#{uri.path}?#{uri.query}", post) |
13 | end |
14 | end |
15 | end |