mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
19 lines
288 B
Ruby
19 lines
288 B
Ruby
class StatusMessage < Post
|
|
#include StatusMessagesHelper
|
|
|
|
xml_name :status_message
|
|
xml_accessor :message
|
|
|
|
key :message, String
|
|
|
|
|
|
validates_presence_of :message
|
|
|
|
|
|
def ==(other)
|
|
(self.message == other.message) && (self.person.email == other.person.email)
|
|
end
|
|
|
|
end
|
|
|