forked from GNUsocial/gnu-social
inbox and outbox for direct messages
Added an inbox and outbox for direct messages. Factored common code to mailbox.php. Factored common code with stream.php to personal.php. darcs-hash:20080916195346-84dde-b5c846f713a970c41fd1b0671cb333e91f3cb920.gz
This commit is contained in:
@@ -26,4 +26,12 @@ class Message extends DB_DataObject
|
||||
|
||||
/* the code above is auto generated do not remove the tag below */
|
||||
###END_AUTOCODE
|
||||
|
||||
function getFrom() {
|
||||
return Profile::staticGet('id', $this->from_profile);
|
||||
}
|
||||
|
||||
function getTo() {
|
||||
return Profile::staticGet('id', $this->to_profile);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user