Changeset 35255 for platform/tdiary
- Timestamp:
- 09/09/09 02:30:44 (4 years ago)
- Files:
-
- 1 modified
-
platform/tdiary/plugin/profile.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
platform/tdiary/plugin/profile.rb
r35251 r35255 42 42 def parse_profile(f) 43 43 doc = REXML::Document.new(f) 44 @name = doc.elements['//user/name'].text 45 @mail = doc.elements['//user/email'].text 44 @name = doc.elements['//user/name'].text if doc.elements['//user/name'] 45 @mail = doc.elements['//user/email'].text if doc.elements['//user/email'] 46 46 # github uses gravater.com for user icon 47 47 @image = "http://www.gravatar.com/avatar/#{Digest::MD5.hexdigest(@mail)}.jpg" … … 67 67 def parse_profile(f) 68 68 doc = REXML::Document.new(f) 69 @name = doc.elements['//user/name'].text 70 @image = doc.elements['//user/profile_image_url'].text 71 @description = doc.elements['//user/description'].text 69 @name = doc.elements['//user/name'].text if doc.elements['//user/name'] 70 @image = doc.elements['//user/profile_image_url'].text if doc.elements['//user/profile_image_url'] 71 @description = doc.elements['//user/description'].text if doc.elements['//user/description'] 72 72 end 73 73 … … 92 92 def parse_profile(f) 93 93 doc = REXML::Document.new(f) 94 @name = doc.elements['//feed/name'].text 94 @name = doc.elements['//feed/name'].text if doc.elements['//feed/name'] 95 95 @image = "http://friendfeed-api.com/v2/picture/#{id}" 96 @description = doc.elements['//feed/description'].text 96 @description = doc.elements['//feed/description'].text if doc.elements['//feed/description'] 97 97 end 98 98
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)