# Copyright (c) 2010, Diaspora Inc. This file is # licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class StatusMessage < Post xml_name :status_message xml_accessor :message key :message, String validates_presence_of :message def to_activity <<-XML #{self.message} #{person.url}status_messages/#{self.id} #{self.created_at.xmlschema} #{self.updated_at.xmlschema} http://activitystrea.ms/schema/1.0/post http://activitystrea.ms/schema/1.0/note XML end def latest_hash { :text => message} end end